From ad0249c4fe8a130cf6bec65d4a3bc5f35b8a0c55 Mon Sep 17 00:00:00 2001 From: Brian Reardon Date: Fri, 19 Sep 2025 09:25:59 -0700 Subject: [PATCH] chore: adjust context, build folder management --- .github/workflows/taco-release.yml | 7 +++++++ taco/cmd/statesman/main.go | 1 + taco/cmd/taco/main.go | 1 + 3 files changed, 9 insertions(+) diff --git a/.github/workflows/taco-release.yml b/.github/workflows/taco-release.yml index ddb966a2d..907bb79b6 100644 --- a/.github/workflows/taco-release.yml +++ b/.github/workflows/taco-release.yml @@ -53,6 +53,13 @@ jobs: with: go-version: '1.24' + - name: Clean build directory + run: | + # Remove any existing binaries to prevent contamination + find . -name "dgctl*" -type f -delete || true + find . -name "taco*" -type f -executable -delete || true + find . -name "statesman*" -type f -executable -delete || true + - name: Derive app dir and version id: meta run: | diff --git a/taco/cmd/statesman/main.go b/taco/cmd/statesman/main.go index 386fe9109..6c2fa888d 100644 --- a/taco/cmd/statesman/main.go +++ b/taco/cmd/statesman/main.go @@ -3,6 +3,7 @@ package main // Clean release test after fixing component names // Verifying Release-Please workflow with PAT token // Expecting automatic tag creation on merge +// Testing binary cleanup to prevent dgctl contamination import ( "context" "flag" diff --git a/taco/cmd/taco/main.go b/taco/cmd/taco/main.go index b5c72c7bf..e3110da2c 100644 --- a/taco/cmd/taco/main.go +++ b/taco/cmd/taco/main.go @@ -3,6 +3,7 @@ package main // Clean release test after fixing component names // Testing Release-Please with proper tag recognition // Should create version 0.1.2 for both components +// Full end-to-end test with cleanup and proper tagging import ( "fmt" "os"