Skip to content

Commit 8a1e6f3

Browse files
committed
feat: Update install_go.sh to use Go 1.25.7
- Use cflinuxfs4 Go binary for all stacks (compatible with cflinuxfs5) - Remove cflinuxfs3 support (deprecated stack) - Single version/SHA simplifies maintenance
1 parent 069fbde commit 8a1e6f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/install_go.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@ set -u
55
set -o pipefail
66

77
function main() {
8-
if [[ "${CF_STACK:-}" != "cflinuxfs3" && "${CF_STACK:-}" != "cflinuxfs4" && "${CF_STACK:-}" != "cflinuxfs5" ]]; then
8+
if [[ "${CF_STACK:-}" != "cflinuxfs4" && "${CF_STACK:-}" != "cflinuxfs5" ]]; then
99
echo " **ERROR** Unsupported stack"
1010
echo " See https://docs.cloudfoundry.org/devguide/deploy-apps/stacks.html for more info"
1111
exit 1
1212
fi
1313

1414
local version expected_sha dir
15-
version="1.25.6"
16-
expected_sha="0ed64e3b9cb9b1c2ec57880dae2427b0ee2676f2ae2fb53c2e1bb838c500f9fb"
15+
version="1.25.7"
16+
expected_sha="12a6e116cffdcd071988cf3c30216a3f08f54d2cfbb45fff67e375823fd0c3b9"
1717
dir="/tmp/go${version}"
1818

1919
mkdir -p "${dir}"
2020

2121
if [[ ! -f "${dir}/bin/go" ]]; then
2222
local url
23-
url="https://buildpacks.cloudfoundry.org/dependencies/go/go_${version}_linux_x64_${CF_STACK}_${expected_sha:0:8}.tgz"
23+
# Use cflinuxfs4 binary for all stacks (compatible with cflinuxfs5)
24+
url="https://buildpacks.cloudfoundry.org/dependencies/go/go_${version}_linux_x64_cflinuxfs4_${expected_sha:0:8}.tgz"
2425

2526
echo "-----> Download go ${version}"
2627
curl "${url}" \

0 commit comments

Comments
 (0)