Skip to content

go-nv/goenv

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Co-authored-by: syndbg <syndbg@users.noreply.github.com>
bce57ab

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 9, 2023 11:19
bin
April 18, 2016 03:09
October 27, 2016 20:56
August 9, 2023 11:19
July 28, 2023 01:09
December 30, 2018 21:58
December 31, 2018 14:18
February 26, 2020 00:39
April 18, 2016 03:09

Go Version Management: goenv

PR Checks Status

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