go-nv / goenv

:blue_car: Like pyenv and rbenv, but for Go.
https://github.com/go-nv/goenv
MIT License
2.09k stars 249 forks source link

Write documentation on how to update goenv in AWS CodeBuild Images #329

Closed ChronosMasterOfAllTime closed 1 year ago

ChronosMasterOfAllTime commented 1 year ago

Leaving this here for now, but in your buildspec.yml add the following commands during the pre_build phase:

      - BUILD_DIR=$PWD
      - cd /root/.goenv/plugins/go-build/../.. && git pull && cd -
      - cd $BUILD_DIR

This will ensure you always have the latest goenv at your disposal. I will add this to our docs.