Commit 3dfdca3
fix(release): wrap goreleaser before-hooks in sh -c
The v1.0.0 release run (workflow #25778329702) failed at the very
first hook with:
error=exec: "cd": executable file not found in $PATH
cmd=cd
Root cause: goreleaser's `before.hooks` runs each entry via Go's
exec.Command — no shell interpretation. `cd go && go mod download`
gets parsed as binary="cd", args=["go", " && ", "go", "mod", "download"],
and exec can't find a `cd` binary.
Fix: wrap each hook in `sh -c "…"` so the working-directory change
and `&&` chain run inside a real shell.
After this lands, retag v1.0.0 to re-fire the release workflow.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e21fe0f commit 3dfdca3
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments