goop icon indicating copy to clipboard operation
goop copied to clipboard

Replace GOPATH rather than prepend?

Open alecthomas opened this issue 11 years ago • 3 comments

What's the rationale for prepending to GOPATH rather than replacing it entirely? Replacing it would result in (more) hermetic builds.

alecthomas avatar Jun 30 '14 00:06 alecthomas

+1. It might be useful to have an option (that is stored in the lock file) that "excludes shared libs" by replacing the GOPATH rather than appending to it.

drewolson avatar Jun 30 '14 15:06 drewolson

It was to support local imports if you have any, but yeah I agree that an option would be great. Will add this.

petejkim avatar Jul 02 '14 23:07 petejkim

My PR #35 adds a .goop/config file. It would be easy to add a flag like DisableSharedDeps.

mattes avatar Feb 24 '15 22:02 mattes