Skip to content

Commit addfff9

Browse files
intel352claude
andcommitted
fix: correct goreleaser v2 config syntax
Remove invalid top-level before/after hooks and duplicate config file that caused YAML parsing errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f3cdc44 commit addfff9

2 files changed

Lines changed: 12 additions & 51 deletions

File tree

.goreleaser.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.goreleaser.yml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,23 @@
11
version: 2
2-
3-
before:
4-
hooks:
5-
- go mod tidy
6-
- "cp plugin.json plugin.json.orig"
7-
- "sed -i.bak 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' plugin.json && rm -f plugin.json.bak"
8-
9-
after:
10-
hooks:
11-
- "mv plugin.json.orig plugin.json"
12-
2+
project_name: workflow-plugin-launchdarkly
133
builds:
14-
- id: workflow-plugin-launchdarkly
15-
main: ./cmd/{{ .ProjectName }}
16-
binary: "{{ .ProjectName }}"
17-
env:
18-
- CGO_ENABLED=0
19-
- GOPRIVATE=github.com/GoCodeAlone/*
20-
goos:
21-
- linux
22-
- darwin
23-
goarch:
24-
- amd64
25-
- arm64
26-
ldflags:
27-
- -s -w -X main.version={{.Version}}
28-
4+
- id: plugin
5+
main: ./cmd/workflow-plugin-launchdarkly
6+
binary: workflow-plugin-launchdarkly
7+
env: [CGO_ENABLED=0]
8+
goos: [linux, darwin]
9+
goarch: [amd64, arm64]
10+
ldflags: ["-s", "-w"]
2911
archives:
30-
- formats: [tar.gz]
12+
- id: plugin
13+
builds: [plugin]
3114
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
15+
format: tar.gz
3216
files:
3317
- plugin.json
3418
- LICENSE
35-
3619
checksum:
37-
name_template: "checksums.txt"
38-
20+
name_template: checksums.txt
3921
release:
4022
github:
4123
owner: GoCodeAlone

0 commit comments

Comments
 (0)