Skip to content

Conversation

silvestre
Copy link
Member

Issue

Using the Go buildpack with GOTOOLCHAIN=local as an online buildpack started to fail after #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:

   -----> Download go 1.24.6
   -----> Running go build supply
   /tmp/buildpackdownloads/a01824c08ac24e60 ~
   ~
   -----> Go Buildpack version 1.10.38

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 master branch

  • I have added an integration test
    No, it's just a dependency bump.

# 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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant