Skip to content

Commit 0977d05

Browse files
committed
feat: Update install_go.sh with per-stack Go versions
- cflinuxfs4: Go 1.25.7 - cflinuxfs5: Go 1.25.7 - Remove cflinuxfs3 support (deprecated stack)
1 parent 069fbde commit 0977d05

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

scripts/install_go.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,26 @@ 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+
16+
# Set Go version and SHA per stack
17+
case "${CF_STACK}" in
18+
cflinuxfs4)
19+
version="1.25.7"
20+
expected_sha="12a6e116cffdcd071988cf3c30216a3f08f54d2cfbb45fff67e375823fd0c3b9"
21+
;;
22+
cflinuxfs5)
23+
version="1.25.7"
24+
expected_sha="d48a3dff9477586e625aea33381ddb94d53bcc35ca1f97d471f12477e359d925"
25+
;;
26+
esac
27+
1728
dir="/tmp/go${version}"
1829

1930
mkdir -p "${dir}"

0 commit comments

Comments
 (0)