cmd/go: 1.20 broke buildvcs inside bare Git repositories with worktrees #59068
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
For reference, in Git work trees,
I’m not really sure if bb39656 was the right way to fix the case in #53640, which had a broken Git repository in the first place (since only the submodule was copied to the Docker container without the Git directory).
Before this change, VCS stamping worked in perfectly valid Git repositories with gitdir link but did not in “broken” (i.e. where
Oh, right, sorry for not looking up existing issues! I known that work trees are somewhat an advanced Git feature and are likely used by a minority of users, and since this wasn’t fixed yet I’ve assumed that nobody reported this issue 😅
Will the fix be eventually backported to 1.20 release?