cmd/go/internal/vcs: ignores selected branch when getting most recent commit #61045
Labels
FrozenDueToAge
GoCommand
cmd/go
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
The current go source for getting the most recent commit hash doesn't appear to consider the currently active branch.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compiled code from a branch, the code uses debug.ReadBuildInfo() to get information about the branch/commit being used for the build. This hash was not the most recent in the branch being used, it was the most recent commit in the repository.
What did you expect to see?
The most recent commit in the currently used branch
What did you see instead?
The most recent commit in the repository
The text was updated successfully, but these errors were encountered: