cmd/go: 'go generate' fails to update PWD variable #43862
Closed
Labels
Milestone
Comments
Oh, the cursed PWD variable. An apparently simple idea with offensively wide-ranging ramifications. An object lesson in three letters for anyone paying attention. |
qingyunha
added a commit
to qingyunha/go
that referenced
this issue
Jan 27, 2021
Most subprocess invocations in the go command use base.AppendPWD to append an accurate value of PWD to the command's environment, which can speed up calls like os.Getwd and also help to provide less-confusing output from scripts. Update `go generate` to do so. Fixes golang#43862 Change-Id: I3b756f1532b2d922f7d74fd86414d5567a0122c0
Change https://golang.org/cl/287152 mentions this issue: |
qingyunha
added a commit
to qingyunha/go
that referenced
this issue
Jan 28, 2021
Most subprocess invocations in the go command use base.AppendPWD to append an accurate value of PWD to the command's environment, which can speed up calls like os.Getwd and also help to provide less-confusing output from scripts. Update `go generate` to do so. Fixes golang#43862 Change-Id: I3b756f1532b2d922f7d74fd86414d5567a0122c0
qingyunha
added a commit
to qingyunha/go
that referenced
this issue
Mar 5, 2021
Most subprocess invocations in the go command use base.AppendPWD to append an accurate value of PWD to the command's environment, which can speed up calls like os.Getwd and also help to provide less-confusing output from scripts. Update `go generate` to do so. Fixes golang#43862 Change-Id: I3b756f1532b2d922f7d74fd86414d5567a0122c0
qingyunha
added a commit
to qingyunha/go
that referenced
this issue
Mar 5, 2021
Most subprocess invocations in the go command use base.AppendPWD to append an accurate value of PWD to the command's environment, which can speed up calls like os.Getwd and also help to provide less-confusing output from scripts. Update `go generate` to do so. Fixes golang#43862 Change-Id: I3b756f1532b2d922f7d74fd86414d5567a0122c0
qingyunha
added a commit
to qingyunha/go
that referenced
this issue
Mar 5, 2021
Most subprocess invocations in the go command use base.AppendPWD to append an accurate value of PWD to the command's environment, which can speed up calls like os.Getwd and also help to provide less-confusing output from scripts. Update `go generate` to do so. Fixes golang#43862 Change-Id: I3b756f1532b2d922f7d74fd86414d5567a0122c0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most subprocess invocations in the
go
command usebase.AppendPWD
to append an accurate value ofPWD
to the command's environment, which can speed up calls likeos.Getwd
and also help to provide less-confusing output from scripts.As noted in #43724 (comment) (CC @dylan-bourque),
go generate
currently fails to do so when invoking the generator command:go/src/cmd/go/internal/generate/generate.go
Line 451 in 3a778ff
It should be updated to do so.
(CC @matloob @jayconrod)
The text was updated successfully, but these errors were encountered: