Live data from Hacker News

A simple virtualenv for Go

github.com

11–20 of 36 posts

Re: A simple virtualenv for Go

#13
post #2

I 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

How is yours safer?

Re: A simple virtualenv for Go

#17
I'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?

Re: A simple virtualenv for Go

#18
post #3

This seems to copy a bad design decision from virtualenv. Please see https://gist.github.com/datagrok/2199506

I implemented the suggestions in this gist on a new branch here:

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

#19
post #17

I'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 think the documentation about go workspaces is just a simple approach and it's expected the community will eventually settle on a way to manage this in a non-global fashion.

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

#20
post #17

I'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 believe this is because they're in Google. For them, taking a VM instance would be more reasonable than multiplexing single machine into multiple virtualized environment.
Post reply on HN