Closed driverpt closed 4 months ago
This PR doesn't actually add Go 1.22 support. The commands you're executing can also be called as normal build tasks. They won't work if a CodeBuild project is configured without internet access.
To add Go 1.22, your PR needs to modify the Dockerfiles so actually download and install Go 1.22 during the container build phase.
Thank you for the feedback. But if we modify the Dockerfiles, how do we ensure that it always installs latest minor version?
It doesn't, and I believe that's also not what AWS guarantees with the CodeBuild images.
If you'd like to use the images that way, why not just call goenv install x.y.z
from an install task in your buildspec?
That shouldn't require modifying the images.
Thanks for the contribution. Go 1.22 support is available in Amazon Linux (5.0) and Ubuntu (7.0) images for x86. Arm container image will get this support in an upcoming release. Resolving, as CodeBuild will be adding support for these runtimes.
Issue #701 Description of changes: Add Go 1.22 Latest version
Important Notes
goenv
now uses latest available patch version onglobal
command. https://github.com/go-nv/goenv/issues/296