File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55set -o pipefail
66
77function main() {
8- if [[ " ${CF_STACK:- } " != " cflinuxfs3 " && " ${CF_STACK:- } " != " cflinuxfs4 " ]]; 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.24.6"
16- expected_sha=" f39b242d56a2a0d1e0ca5f6294e1811dc9653354603078b128b7f347a33bca2c"
15+ version=" 1.25.10"
16+ expected_sha_cflinuxfs4=" a1d6fbc0293b4de0f122f55df4af8689b294ef7a9d749b9f24e761deef33464e"
17+ expected_sha_cflinuxfs5=" ae729ea414d69b4c3a4757f772d6b4f4c3a1a6213c1d0d7e3267139cef708327"
18+ if [[ " ${CF_STACK} " == " cflinuxfs4" ]]; then
19+ expected_sha=" ${expected_sha_cflinuxfs4} "
20+ elif [[ " ${CF_STACK} " == " cflinuxfs5" ]]; then
21+ expected_sha=" ${expected_sha_cflinuxfs5} "
22+ else
23+ echo " **ERROR** No SHA defined for stack: ${CF_STACK} "
24+ exit 1
25+ fi
1726 dir=" /tmp/go${version} "
1827
1928 mkdir -p " ${dir} "
2029
2130 if [[ ! -f " ${dir} /bin/go" ]]; then
2231 local url
23- # TODO: use exact stack based dep, after go buildpack has cflinuxfs4 support
24- # url="https://buildpacks.cloudfoundry.org/dependencies/go/go_${version}_linux_x64_${CF_STACK}_${expected_sha:0:8}.tgz"
25- url=" https://buildpacks.cloudfoundry.org/dependencies/go/go_${version} _linux_x64_cflinuxfs3_${expected_sha: 0: 8} .tgz"
32+ url=" https://buildpacks.cloudfoundry.org/dependencies/go/go_${version} _linux_x64_${CF_STACK} _${expected_sha: 0: 8} .tgz"
33+ # url="https://buildpacks.cloudfoundry.org/dependencies/go/go_${version}_linux_x64_cflinuxfs3_${expected_sha:0:8}.tgz"
2634
2735 echo " -----> Download go ${version} "
2836 curl " ${url} " \
You can’t perform that action at this time.
0 commit comments