Skip to content

Commit 990e47c

Browse files
committed
Update release artifact to flatten package structure
1 parent e644a19 commit 990e47c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.goreleaser.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@ project_name: mach-composer-plugin-sentry
33
builds:
44
- id: "mach-composer-plugin"
55
main: ./main.go
6-
binary: "bin/{{ .ProjectName }}"
6+
binary: "{{ .ProjectName }}_v{{ .Version }}"
77
flags:
88
- -trimpath
9-
- -tags=netgo
109
env:
1110
- CGO_ENABLED=0
12-
asmflags:
13-
- all=-trimpath={{.Env.GOPATH}}
14-
gcflags:
15-
- all=-trimpath={{.Env.GOPATH}}
16-
ldflags: |
17-
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -extldflags '-static'
11+
ldflags:
12+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
1813
goos:
1914
- windows
2015
- linux
@@ -38,7 +33,7 @@ changelog:
3833

3934
archives:
4035
- id: "mach-composer-plugin"
41-
name_template: "{{ .ProjectName }}-{{.Version}}-{{.Os}}-{{.Arch}}{{ if .Arm }}v{{.Arm }}{{ end }}"
42-
format: tar.gz
36+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
37+
format: zip
4338
files:
4439
- LICENSE

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.1.2 (2023-01-19)
2+
- Update release artifact to flatten package structure
3+
14
# 0.1.1 (2023-01-17)
25
- Fix rendering of the sentry token if it is a variable reference
36

0 commit comments

Comments
 (0)