cmd/go: binary does not contain VCS information when compiled in git worktree dir #58218
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
Run
testscript
on the following file:What did you expect to see?
A successful test.
What did you see instead?
The binary built in a git worktree directory does not contain VCS information.
I suspect the logic doesn't understand that
.git
can be a file was well as a directory.The text was updated successfully, but these errors were encountered: