-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Should the go
directive in go.mod
a semver version (including patch), or not?
#68971
Labels
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Comments
dmitshur
added
the
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
label
Aug 20, 2024
Nice, thanks for the link! However I still ask myself what the go team recommend to use as a version. The one with a patch, or without? What is considered as best practices? |
The release versions are expected and generated by go tooling. |
This was referenced Sep 5, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Go version
go version go1.22.2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Given a simple
go.mod
file:No other files are available.
Then I run
go build
.What did you see happen?
When I run
go build
I get the following error:What did you expect to see?
I don't expect an error.
According to this docs:
Heading over to the
Go version
link I can find this:Because of that, I would expect that I can use a "language version" as
go
directive.But it is not working.
So either
go
behaves wrong (by not accepting a "langauge version" as ago
directive), or the docs are not correct and needs to be changed. It seems only a "release name" is supported.Looking at https://go.dev/doc/devel/release, I guess I can use each and every version mentioned here.
Hence, I can't use 1.21 (and up) anymore, since this release simply doesn't exist anymore.
I'm unsure what is the correct behaviour. Please let me know whats correct and what needs to be adjusted/fixed/changed.
Thanks! 🙃
Furhter reading where this is comming from (and for cress referencing):
cli/cli#9489
The text was updated successfully, but these errors were encountered: