Skip to content
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

go: $PWD interpolation and actual pwd of command in go:generate differ #15587

Closed
jmhodges opened this issue May 7, 2016 · 3 comments
Closed

Comments

@jmhodges
Copy link
Contributor

jmhodges commented May 7, 2016

My go version is go1.6.2 darwin/amd64

If you reference $PWD in a go:generate comment, it will be the directory the user ran go generate in, instead of the directory the go:generate comment.

It makes some workarounds for getting some prickly-about-paths commands harder to get right without making some assumptions about where go generate will be run.

@minux
Copy link
Member

minux commented May 7, 2016 via email

@robpike robpike closed this as completed May 7, 2016
@jmhodges
Copy link
Contributor Author

jmhodges commented Sep 6, 2016

This was for use with protoc which has its own, different rules about how you import other .proto files and I was trying to reconcile them. Using relative paths and the such give it a hard time.

@golang golang locked and limited conversation to collaborators Sep 6, 2017
@bcmills
Copy link
Contributor

bcmills commented Jan 11, 2022

This was fixed as #43862.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants