Like pyenv and rbenv, but for Go.
MIT License
goenv aims to be as simple as possible and follow the already established successful version management model of pyenv and rbenv.
New go versions are added automatically on a daily CRON schedule.
This project was cloned from pyenv and modified for Go.
nvm
.goenv
is more simplified.The following snippet can be inserted in your buildspec.yml (or buildspec definition) for AWS CodeBuild. It's recommended to do this during the pre_build
phase.
Side Note: if you use the below steps, please unset your golang version in the buildspec and run the installer manually.
- BUILD_DIR=$PWD
- cd /root/.goenv/plugins/go-build/../.. && git pull && cd -
- cd $BUILD_DIR