Skip to content

Commit 2e93c82

Browse files
sjarmakclaude
andcommitted
fix: disable go.work in flipt security task verifier to avoid version mismatch
When sg_only verifier restores the full repo, its go.work may require a newer Go than the container provides. Setting GOWORK=off avoids this. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 35051cd commit 2e93c82

File tree

1 file changed

+3
-1
lines changed
  • benchmarks/csb/security/flipt-repo-scoped-access-001/tests

1 file changed

+3
-1
lines changed

benchmarks/csb/security/flipt-repo-scoped-access-001/tests/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ fi
206206

207207
# Check 4 (0.25): Go compilation succeeds
208208
echo "Running Go compilation check..."
209-
if go build ./internal/server/evaluation/... 2>/logs/verifier/build_errors.txt; then
209+
# Disable go.work to avoid version mismatches when sg_only verifier restores the
210+
# full repo (its go.work may require a newer Go than the container provides).
211+
if GOWORK=off go build ./internal/server/evaluation/... 2>/logs/verifier/build_errors.txt; then
210212
echo "[x] Go compilation passed"
211213
SCORE_NUMERATOR=$((SCORE_NUMERATOR + 25))
212214
else

0 commit comments

Comments
 (0)