It would be nice to standardize this a bit. I'm sure other Go devs I work with use something different (I homerolled for awhile but I've been really pleased with Gobrew).
A simple virtualenv for Go
11–20 of 36 posts
Re: A simple virtualenv for Go
#12Re: A simple virtualenv for Go
#13I was interested when I saw the project name, but this appears to be: mkdir -p pkg bin src export GOPATH="`pwd`" export PATH="$GOPATH/bin:$PATH" Only what I typed there is shorter and safer than the committed code. That's... simple, yes. https://github.com/ChuckHa/goenv/blob/master/goenv
Re: A simple virtualenv for Go
#14Re: A simple virtualenv for Go
#15The approach we've taken at work is, each project has its own src/pkg/bin tree under the checked-in root, and we just set GOPATH. Simple and easy.
Re: A simple virtualenv for Go
#16There's already a `goenv` https://github.com/wfarr/goenv , that I've been using for a bit. Also can do go version management.
Re: A simple virtualenv for Go
#17Re: A simple virtualenv for Go
#18This seems to copy a bad design decision from virtualenv. Please see https://gist.github.com/datagrok/2199506
https://github.com/ChuckHa/goenv/tree/inve
I'm not sure I like it better though because it unsets $PS1 and other variables that get set in .bash_profile.
Re: A simple virtualenv for Go
#19I'm actually a little confused by go's global approach, which ultimately gives rise to the myriad of solutions listed in the comments here. Am I missing some go-centric way of thinking?
I'm guessing everyone wants something slightly different and it would be pointless for Go to have One Way hence all the alternatives here.
Re: A simple virtualenv for Go
#20I'm actually a little confused by go's global approach, which ultimately gives rise to the myriad of solutions listed in the comments here. Am I missing some go-centric way of thinking?