Skip to content

Commit e7cb879

Browse files
committed
Add cflinuxfs5 to install_go.sh stack allowlist
When deploying via git URL, CF runs bin/supply as a shell script which sources scripts/install_go.sh to bootstrap Go compilation. The stack check only allowed cflinuxfs3 and cflinuxfs4, causing cflinuxfs5 deployments to fail with 'Unsupported stack' before any Go code runs. The Go binary (cflinuxfs3) is forward-compatible and works on all three stacks.
1 parent 4b2a72b commit e7cb879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install_go.sh

Lines changed: 1 addition & 1 deletion
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" && "${CF_STACK:-}" != "cflinuxfs4" ]]; then
8+
if [[ "${CF_STACK:-}" != "cflinuxfs3" && "${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

0 commit comments

Comments
 (0)