From 68bfc478a5a240ef5cd3474bb31979a3e4528847 Mon Sep 17 00:00:00 2001 From: Jon Langevin Date: Sun, 24 May 2026 18:31:47 -0400 Subject: [PATCH] fix(release): replace sh -c for-loop with explicit sed per file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous sh -c approach caused a YAML colon parse error at line 6. Replace the for-loop with two explicit sed -i.bak commands, one per manifest file — same result, no shell wrapper needed. Co-Authored-By: Claude Sonnet 4.6 --- .goreleaser.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d8d83ca..af4441c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,7 +3,8 @@ version: 2 before: hooks: - go mod tidy - - sh -c "for manifest in plugin.json plugin.atlas.json; do sed -i.bak -e 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' -e 's|/releases/download/v[0-9][^/]*/|/releases/download/v{{ .Version }}/|g' \"$manifest\" && rm -f \"$manifest.bak\"; done" + - "sed -i.bak -e 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' -e 's|/releases/download/v[0-9][^/]*/|/releases/download/v{{ .Version }}/|g' plugin.json && rm -f plugin.json.bak" + - "sed -i.bak -e 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' -e 's|/releases/download/v[0-9][^/]*/|/releases/download/v{{ .Version }}/|g' plugin.atlas.json && rm -f plugin.atlas.json.bak" builds: # Main plugin binary: golang-migrate + goose + wfctl CLI