Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Tip

该命令从框架v2.3版本开始提供。

使用场景

当官方框架版本在升级过程中,确实无法保证兼容性的时候,那么官方会通过该命令提供自动修正兼容问题。并且官方会保证该指令可重复执行,无副作用。当官方框架版本在升级过程中,确实难以保证完全向下兼容性的时候,那么官方会通过该命令提供自动修正兼容问题。并且官方会保证该指令可重复执行,无副作用。

使用方式

Code Block
languagexml
$ gf fix -h
USAGE
    gf fix

OPTION
    -/--path     directory path, it uses current working directory in default
    -h, --help   more information about this command

用以低版本(当前go.mod中的GoFrame版本)升级高版本(当前CLI使用的GoFrame版本)自动更新本地代码不兼容变更。

注意事项

命令执行前请git提交本地修改内容或执行目录备份。



Panel
titleContent Menu

Table of Contents