Skip to content

Commit f2b7139

Browse files
Updating github-config
1 parent 5dcf56e commit f2b7139

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

scripts/install_go.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ function main() {
1212
fi
1313

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

1919
mkdir -p "${dir}"
2020

2121
if [[ ! -f "${dir}/bin/go" ]]; then
22-
local url
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"
22+
local url stack_for_download
23+
# Use cflinuxfs4 binary for cflinuxfs5 (compatible)
24+
stack_for_download="${CF_STACK}"
25+
if [[ "${CF_STACK}" == "cflinuxfs5" ]]; then
26+
stack_for_download="cflinuxfs4"
27+
fi
28+
url="https://buildpacks.cloudfoundry.org/dependencies/go/go_${version}_linux_x64_${stack_for_download}_${expected_sha:0:8}.tgz"
2529

2630
echo "-----> Download go ${version}"
2731
curl "${url}" \

scripts/package.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ function package::buildpack() {
9595
stack_flag="--any-stack"
9696
if [[ "${stack}" != "any" ]]; then
9797
stack_flag="--stack=${stack}"
98-
export CF_STACK="${stack}"
9998
fi
10099

101100
local file

0 commit comments

Comments
 (0)