-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/link: documentation should mention that -s implies -w #71051
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Comments
Related Issues Related Code Changes
Related Documentation (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
willboland
added a commit
to willboland/golang-go
that referenced
this issue
Dec 29, 2024
The Go 1.22 release notes note that the -s flag implies -w; however, the documentation makes no such reference. This updates the documentation to better match the release notes. The Go 1.22 release notes can be found at https://tip.golang.org/doc/go1.22#linker Fixes golang#71051
willboland
added a commit
to willboland/golang-go
that referenced
this issue
Dec 29, 2024
The Go 1.22 release notes note that the -s flag implies -w; however, the documentation makes no such reference. This updates the documentation to better match the release notes. The Go 1.22 release notes can be found at https://tip.golang.org/doc/go1.22#linker Fixes golang#71051
willboland
added a commit
to willboland/golang-go
that referenced
this issue
Dec 29, 2024
The Go 1.22 release notes state that -s implies -w; however, the documentation makes no such reference. This updates the documentation to better match the release notes. The Go 1.22 release notes can be found at https://tip.golang.org/doc/go1.22#linker Fixes golang#71051
Change https://go.dev/cl/638976 mentions this issue: |
wyf9661
pushed a commit
to wyf9661/go
that referenced
this issue
Jan 21, 2025
Existing documentation does not reference implicit behavior. Updates the documentation to reflect that -s implies -w. Fixes golang#71051 Change-Id: I5c139c37f5f78596365e38479be4c865a4d4dd62 GitHub-Last-Rev: a3e462c GitHub-Pull-Request: golang#71053 Reviewed-on: https://go-review.googlesource.com/c/go/+/638976 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Go version
n/a
Output of
go env
in your module/workspace:What did you do?
Read the documentation for
go tool link
, specifically with regards to the-s
and-w
flags.What did you see happen?
There documentation only states:
Only the Go 1.22 release notes seem to explain their interaction.
What did you expect to see?
The documentation for
-s
should explicitly say that it implies-w
by default, and that you can override this by explicitly passing-w=0
. (In short, developers should not have to track down the 1.22 release notes to understand how these two flags interact.)The text was updated successfully, but these errors were encountered: