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

cmd/go: make -trimpath a list #28002

hugelgupf opened this issue Oct 4, 2018 · 2 comments


None yet
3 participants
Copy link

commented Oct 4, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?


Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?


What did you do?

go build -gcflags=-trimpath=/tmp/foo:/tmp/bar

I'd like to be able to trim multiple paths for fully reproducible multi-GOPATH builds in different users' environments.

For now you can only trim one prefix. We could plausibly make -trimpath take a list for Go 1.7. If that's useful to you please file a new issue. Thanks. - @rsc in #13809

@katiehockman katiehockman changed the title Make -trimpath a list cmd/go: make -trimpath a list Oct 4, 2018


This comment has been minimized.

Copy link

commented Oct 4, 2018


This comment has been minimized.

Copy link

commented Oct 4, 2018

Dup of #22382, I think.

@bcmills bcmills closed this Oct 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.