Skip to content

Commit 3e734ae

Browse files
intel352claude
andauthored
fix(release): fix goreleaser YAML escape in before hook (#15)
goreleaser v2.16.0 rejects \. in double-quoted YAML strings. Combined both sed expressions into one command using [^/]* instead of \. (matching botdetect pattern). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8ecfa5b commit 3e734ae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.goreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ version: 2
33
before:
44
hooks:
55
- go mod tidy
6-
- "sed -i.bak 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' plugin.json && rm -f plugin.json.bak"
7-
- "sed -i.bak 's|/releases/download/v[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/|/releases/download/v{{ .Version }}/|g' plugin.json && rm -f plugin.json.bak"
6+
- "sed -i.bak -e 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' -e 's|/releases/download/v[^/]*/|/releases/download/v{{ .Version }}/|g' plugin.json && rm -f plugin.json.bak"
87

98
builds:
109
- id: workflow-plugin-data-engineering

0 commit comments

Comments
 (0)