-
Notifications
You must be signed in to change notification settings - Fork 17.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
cmd/go: document file language version semantics in go help buildconstraint
#68161
Labels
Documentation
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Comments
Similar Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
joedian
added
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
labels
Jun 25, 2024
Change https://go.dev/cl/595475 mentions this issue: |
Mchnan
pushed a commit
to Mchnan/go-sylixos
that referenced
this issue
Jul 9, 2024
This change adds documentation for language version downgrading using build constraints. Fixes golang#68161 For golang#61894 Change-Id: I283a51afd7020c9fd1f5469a6a93fd814ba32f7e Reviewed-on: https://go-review.googlesource.com/c/go/+/595475 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Documentation
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Discussing with @matloob, we were surprised that https://go.dev/doc/toolchain was the best (only?) canonical documentation we could find for the fact that
//go:build go1.22
is not just a build constraint, but also affects the language version within that file.We should make this more apparent in documentation, by including this information in (at least)
go help buildconstraint
. It may also be worth mentioning this ingo.dev/ref/mod
, or other go command documentation.The text was updated successfully, but these errors were encountered: