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

Something wrong with version 0.13.2 #198

Closed
fongfiafia opened this issue Mar 28, 2024 · 2 comments · Fixed by #199
Closed

Something wrong with version 0.13.2 #198

fongfiafia opened this issue Mar 28, 2024 · 2 comments · Fixed by #199

Comments

@fongfiafia
Copy link

What version of GCI are you using?

0.13.2


Reproduce Steps

My makefile command is: go install github.com/daixiang0/gci@latest. This usually works fine, but yesterday I encountered an error:

go: github.com/daixiang0/gci@latest (in github.com/daixiang0/gci@v0.13.2): go.mod:5: unknown directive: toolchain

I believe the error was caused by changes introduced in the latest version of the package. So to resolve it, I instead specified a previous stable version by changing the command to:

go install github.com/daixiang0/gci@v0.13.1

and the problem is solved.


What did you expect to see?

What did you see instead?

@daixiang0
Copy link
Owner

Thanks for your report!

The root cause is Go 1.22 introduce this param in the go module, I will delete it and release new version for backwards compatible.

@fongfiafia
Copy link
Author

fongfiafia commented Mar 28, 2024 via email

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 a pull request may close this issue.

2 participants