Skip to content

go-nv/goenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7a8df0f · Mar 6, 2025
Dec 20, 2024
Apr 18, 2016
Oct 28, 2016
Jan 17, 2025
Mar 5, 2025
Dec 19, 2024
Jan 7, 2022
Dec 26, 2024
Dec 24, 2015
Dec 30, 2018
Jun 2, 2024
Dec 31, 2018
Dec 31, 2018
Mar 6, 2025
Feb 25, 2020
Jun 1, 2024
Jan 1, 2019
Jul 28, 2023
Jul 27, 2023
Dec 14, 2024
Jan 7, 2024
Oct 13, 2024
Apr 18, 2016
Aug 9, 2023
Jun 1, 2024
Aug 9, 2023

Repository files navigation

Go Version Management: goenv

PR Checks Status Latest Release License Go Bash Linux macOS

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.

asciicast

goenv does...

  • Let you change the global Go version on a per-user basis.
  • Provide support for per-project Go versions.
  • Allow you to override the Go version with an environment variable.
  • Search commands from multiple versions of Go at a time.

goenv compared to others:


Hints

AWS CodeBuild

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

Links