Skip to content

Commit 40b6190

Browse files
committed
Fix goreleaser archive format
Use the binary name, not the project name, as the first part of the artifact. This prevents us from accidentally releasing `base-image` as `cog`, for example. As some braces to go with my belt, restrict our archive to only include the cog binary for now.
1 parent 9563ef1 commit 40b6190

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.goreleaser.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ builds:
3131
- "-s -w -X github.com/replicate/cog/pkg/global.Version={{.Version}} -X github.com/replicate/cog/pkg/global.Commit={{.Commit}} -X github.com/replicate/cog/pkg/global.BuildTime={{.Date}}"
3232
archives:
3333
- format: binary
34+
builds:
35+
- cog # for now we only release cog
3436
name_template: >-
35-
{{ .ProjectName }}_
37+
{{ .Binary }}_
3638
{{- title .Os }}_
3739
{{- if eq .Arch "amd64" }}x86_64
3840
{{- else if eq .Arch "386" }}i386

0 commit comments

Comments
 (0)