From 675f230000b3104eed92ccf56a2e13575a04fabd Mon Sep 17 00:00:00 2001 From: ivanovac Date: Tue, 24 Feb 2026 13:24:13 +0200 Subject: [PATCH 1/3] Pin Go to 1.24 in test-pull-request workflow Go 1.26 introduced breaking changes that prevent zip file creation for buildpack archives. Pin to Go 1.24 until the issue is resolved. --- .github/workflows/test-pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index cc08c20c6..eb162fb7b 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.24' - name: Checkout uses: actions/checkout@v4 @@ -53,7 +53,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.24' - name: Checkout uses: actions/checkout@v4 From c83b4866275ddc57898ad284064d448cdb41b3d5 Mon Sep 17 00:00:00 2001 From: ivanovac Date: Wed, 11 Mar 2026 11:22:27 +0200 Subject: [PATCH 2/3] feat: Add cflinuxfs5 to supported stacks - Add cflinuxfs5 (Ubuntu 24.04) to stack validation in install_go.sh - Export CF_STACK in package.sh for stack-aware builds This is a minimal change to unblock cflinuxfs5 testing in dependent buildpacks. Full cflinuxfs5 dependency support (manifest entries) will follow in a separate PR once binaries are available. --- scripts/install_go.sh | 2 +- scripts/package.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install_go.sh b/scripts/install_go.sh index 6e998957d..c882bd5d2 100755 --- a/scripts/install_go.sh +++ b/scripts/install_go.sh @@ -5,7 +5,7 @@ set -u set -o pipefail function main() { - if [[ "${CF_STACK:-}" != "cflinuxfs3" && "${CF_STACK:-}" != "cflinuxfs4" ]]; then + if [[ "${CF_STACK:-}" != "cflinuxfs3" && "${CF_STACK:-}" != "cflinuxfs4" && "${CF_STACK:-}" != "cflinuxfs5" ]]; then echo " **ERROR** Unsupported stack" echo " See https://docs.cloudfoundry.org/devguide/deploy-apps/stacks.html for more info" exit 1 diff --git a/scripts/package.sh b/scripts/package.sh index 9314014da..af45cd726 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -95,6 +95,7 @@ function package::buildpack() { stack_flag="--any-stack" if [[ "${stack}" != "any" ]]; then stack_flag="--stack=${stack}" + export CF_STACK="${stack}" fi local file From 9fcd8903e09784254be5d74b2f2ad247fd63de1f Mon Sep 17 00:00:00 2001 From: Tsvetelina Marinova Date: Wed, 11 Mar 2026 11:27:23 +0200 Subject: [PATCH 3/3] Revert to original image --- .github/workflows/test-pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index eb162fb7b..cc08c20c6 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: '1.24' + go-version: stable - name: Checkout uses: actions/checkout@v4 @@ -53,7 +53,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: '1.24' + go-version: stable - name: Checkout uses: actions/checkout@v4