Skip to content

Commit e9e1ae4

Browse files
cf-buildpacks-engryanmoran
authored andcommitted
Updating github-config
1 parent cd4135b commit e9e1ae4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/install_go.sh

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

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

2121
if [[ ! -f "${dir}/go/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+
# 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"
2426

2527
echo "-----> Download go ${version}"
2628
curl "${url}" \

0 commit comments

Comments
 (0)