Skip to content

fix(release): wrap for-loop hook in sh -c (v0.3.9)#28

Merged
intel352 merged 1 commit into
mainfrom
fix/release-pipeline-v0.3.9
May 24, 2026
Merged

fix(release): wrap for-loop hook in sh -c (v0.3.9)#28
intel352 merged 1 commit into
mainfrom
fix/release-pipeline-v0.3.9

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • Goreleaser runs before.hooks directly without a shell, so bare for ... done fails with exec: "for": executable file not found
  • Wrap the for-loop in sh -c "..." so the shell interprets the loop

Root cause

Run 26373665761 failed: error=exec: "for": executable file not found in $PATH

Test plan

  • Merge, retag at HEAD as v0.3.9, verify Release run passes

GoReleaser runs before.hooks directly without a shell, so the bare
`for ... done` loop fails with 'exec: "for": executable file not found'.
Wrap it in `sh -c "..."` so the shell interprets the loop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@intel352 intel352 merged commit 0a076ee into main May 24, 2026
3 of 4 checks passed
@intel352 intel352 deleted the fix/release-pipeline-v0.3.9 branch May 24, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant