moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.14k stars 527 forks source link

add support for system-wide go install #71

Open neurogenesis opened 10 years ago

neurogenesis commented 10 years ago

gvm is great for managing user-specific or version-specific install of go, but doesn't support management of the system's version of go (used by default if a user hasn't installed gvm).

to simplify deployment and use of go apps to app-specific VMs or docker containers, where multiple versions likely aren't necessary, it would be nice to be able to install / manage the system version of go (/usr/bin/go). this would also allow a great cross-platform method of installing go, as no OS-specific packages are supported (rpm, apt/deb, etc.).

benbayard commented 10 years ago

Bump for this feature!

sgerrand commented 10 years ago

This seems contrary to the intent of a version manager. The installation method for Go is unambiguous and easy to follow.

:-1: from me.

skottler commented 10 years ago

@sgerrand Huh? What if you want several versions available to different users across the system?

sgerrand commented 10 years ago

That use case seems fine to me, but appears different to this issue's description as currently phrased.

neurogenesis commented 10 years ago

@sgerrand

The installation method for Go is unambiguous and easy to follow.

if you're installing / removing / maintaining it manually, then yes... it is straightforward and easy to follow the instructions. if you're automating the installation of go across multiple platforms, particularly for those where OS packages don't exist (like ubuntu), then a universal go installation manager would be of high value.

some reasons why this would be helpful:

@skottler, having a system-wide installation of go isn't mutually exclusive of a user-specific installation. Tools like rvm and rbenv for ruby allow a system default to be easily overridden per user.

squanto commented 10 years ago

bump

tve commented 9 years ago

Bump.

The installation method for Go is unambiguous and easy to follow.

Perhaps, but I don't want to have to figure it out all over again every few months, specially with cross compiler installs and all that.

marcioAlmada commented 9 years ago

+1

bedge commented 9 years ago

+1, the current per-user install is not at all dev-ops friendly.

rezen commented 8 years ago

+1

yusuf81 commented 7 years ago

+1

scalp42 commented 5 years ago

If running on Ubuntu, we moved to godeb regarding the Docker scenario:

RUN wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz && tar -xvzf godeb-amd64.tar.gz && rm -f godeb-amd64.tar.gz
RUN ./godeb install 1.11.4

Hopefully it helps someone ✌️