-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: use the correct linker config in the buildID hash #40296
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
Conversation
This PR (HEAD: db76934) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/243557 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Jay Conrod: Patch Set 1: Run-TryBot+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 1: TryBots beginning. Status page: https://farmer.golang.org/try?commit=ac9b8cda Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 1: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
This PR (HEAD: 026e2aa) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/243557 to see it. Tip: You can toggle comments from me using the |
Message from Jay Conrod: Patch Set 2: Run-TryBot+1 (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 2: SlowBots beginning. Status page: https://farmer.golang.org/try?commit=191265a9 Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 2: TryBot-Result+1 SlowBots are happy.
Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Jay Conrod: Patch Set 2: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Alex Opie: Patch Set 2: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Alex Opie: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Jay Conrod: Patch Set 2: Trust+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Bryan C. Mills: Patch Set 2: Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
This test builds the same source twice, from two different GOROOT paths, and checks that both results share the same BuildID string to confirm that the binaries are identical. Updates: 38989
The linker config is hashed into the buildID; however, the GOROOT_FINAL environment variable that is actually used when -trimpath is specified was not reflected in that hash. This change fixes that. Fixes: 38989
The test makes use of symlinks, so should be skipped if the environment doesn't support them.
There's no reason they should be disabled
026e2aa
to
4cf8292
Compare
This PR (HEAD: 4cf8292) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/243557 to see it. Tip: You can toggle comments from me using the |
Message from Jay Conrod: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 3: SlowBots beginning. Status page: https://farmer.golang.org/try?commit=da863b89 Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 3: Build is still in progress... Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
Message from Gobot Gobot: Patch Set 3: TryBot-Result-1 1 of 22 SlowBots failed: Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed.SlowBot builds that ran:
Please don’t reply on this GitHub thread. Visit golang.org/cl/243557. |
This PR is being closed because golang.org/cl/243557 has been merged. |
The linker config is hashed into the buildID; however, the GOROOT_FINAL environment variable that is actually used when -trimpath is specified was not reflected in that hash. This change fixes that. Fixes #38989 Change-Id: I418a21a9f6293ca63c101d22b501dfdba8e91ac6 GitHub-Last-Rev: 4cf8292 GitHub-Pull-Request: #40296 Reviewed-on: https://go-review.googlesource.com/c/go/+/243557 Run-TryBot: Jay Conrod <[email protected]> Reviewed-by: Jay Conrod <[email protected]> Trust: Jay Conrod <[email protected]> Trust: Bryan C. Mills <[email protected]>
The linker config is hashed into the buildID; however,
the GOROOT_FINAL environment variable that is
actually used when -trimpath is specified was not
reflected in that hash. This change fixes that.
Fixes #38989