fix(online buildpack): Update Go version used for online buildpack - #525
Merged
ivanovac merged 1 commit intoFeb 11, 2026
Merged
Conversation
ramonskie
added a commit
to cloudfoundry/java-buildpack
that referenced
this pull request
Dec 9, 2025
ramonskie
added a commit
to cloudfoundry/java-buildpack
that referenced
this pull request
Jan 5, 2026
ramonskie
added a commit
to cloudfoundry/java-buildpack
that referenced
this pull request
Jan 5, 2026
# Issue Using the Go buildpack with `GOTOOLCHAIN=local` as an online buildpack started to fail after cloudfoundry#516 as the `go.mod` requires a Go > 1.23 but the `install_go.sh` scripts still downloads Go 1.22. Without `GOTOOLCHAIN=local` it downloads Go 1.24 as required by the `go toolchain` line in `go.mod`: ``` 2025-08-18T17:45:00.33+0200 [STG/0] OUT -----> Download go 1.22.5 2025-08-18T17:45:03.60+0200 [STG/0] OUT -----> Running go build supply 2025-08-18T17:45:03.60+0200 [STG/0] OUT /tmp/buildpackdownloads/45909db73807128d ~ 2025-08-18T17:45:03.61+0200 [STG/0] ERR go: downloading go1.24.0 (linux/amd64) ``` With `GOTOOLCHAIN=local` it fails: ``` 2025-08-18T17:48:52.53+0200 [STG/0] OUT -----> Download go 1.22.5 2025-08-18T17:48:55.77+0200 [STG/0] OUT -----> Running go build supply 2025-08-18T17:48:55.77+0200 [STG/0] OUT /tmp/buildpackdownloads/45909db73807128d ~ 2025-08-18T17:48:55.77+0200 [STG/0] ERR go: go.mod requires go >= 1.23.0 (running go 1.22.5; GOTOOLCHAIN=local) 2025-08-18T17:48:55.77+0200 [STG/0] ERR Failed to compile droplet: Failed to run all supply scripts: exit status 1 ``` # Fix Bump Go version to the latest currently in `manifest.yml`.
silvestre
force-pushed
the
fix-non-offline-buildpack-go-version
branch
from
January 23, 2026 15:43
4a599a4 to
cef9127
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Using the Go buildpack with
GOTOOLCHAIN=localas an online buildpack started to fail after #516 as thego.modrequires a Go > 1.23 but theinstall_go.shscripts still downloads Go 1.22.Without
GOTOOLCHAIN=localit downloads Go 1.24 as required by thego toolchainline ingo.mod:With
GOTOOLCHAIN=localit fails:Fix
Bump Go version to the latest currently in
manifest.yml:Thanks for contributing to the buildpack. To speed up the process of reviewing your pull request please provide us with:
I have viewed signed and have submitted the Contributor License Agreement
I have made this pull request to the
masterbranchI have added an integration test
No, it's just a dependency bump.