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:
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?