Skip to content
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

fix(cmd/gf): fix command gf up with -u option upgrading packages indirectly required would fail with higher version of go required #3687

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

hailaz
Copy link
Member

@hailaz hailaz commented Jul 17, 2024

gf up命令会在go get的时候加上-u参数,这会导致强制升级某些间接依赖,会导致依赖的go版本大于当前环境版本而导致报错。

如下图所示,带了-u参数会报错,只使用@latest标签则正常
cf5b1e662aab1523f13eac73c2edcbb

f852d74f8605881b687caab9d07711b

@houseme houseme requested a review from gqcn July 17, 2024 08:26
@gqcn gqcn changed the title fix(cmd/gf): fix gf up error fix(cmd/gf): fix command gf up with -u option upgrading packages indirectly required would fail with higher version of go required Jul 17, 2024
@gqcn gqcn merged commit ba322ba into master Jul 17, 2024
46 checks passed
@gqcn gqcn deleted the fix/gfup branch July 17, 2024 12:21
wln32 pushed a commit to wln32/gf that referenced this pull request Aug 14, 2024
…truct converting (#3)

* fix(cmd/gf): fix command `gf up` with `-u` option upgrading packages indirectly required would fail with higher version of go required (gogf#3687)

* up

* up

* refactor(util/gconv): add struct&field cache to improve performance for struct converting

---------

Co-authored-by: 海亮 <739476267@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants