-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cmd/gf): support custom go and gf version for gf init #3759
Conversation
Quality Gate passedIssues Measures |
@oldme-git 这里有几点问题注意一下:
|
@oldme-git Here are some issues to pay attention to:
|
有人提过这个问题。这里的 gf-cli 的版本就是框架的主版本号,这样可以在任意版本的 gf-cli 下使用对应的框架版本。至于怎么样评估模板的可运行性,可以在仓库里加一个自动运行脚本。 |
Someone asked this question. The version of gf-cli here is the main version number of the framework, so that the corresponding framework version can be used under any version of gf-cli. |
Dear reviewer:
对
gf init
命令进行增强,可以支持自定义 go 和 gf 版本。功能变动
gf init -gov="1.19"
,以支持自定义 go version,默认当前环境 go version;gf init -gfv="2.7.3"
,以支持自定义 gf version,默认 gf-cli build version;gf init -u
,升级到最新 gf 版本命令,此功能由gf init -gfv="2.7.3"
取代;gf init
windows
下/ \
混乱注意
合并此 PR 之前先 Review:template-mono and template-single
resolved #3751