Skip to content

Commit a840862

Browse files
authored
fix: version command (#212)
Resolves #1
1 parent ec127a9 commit a840862

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ builds:
99
flags:
1010
- -trimpath
1111
ldflags:
12-
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
12+
- "-s -w"
13+
- "-X github.com/docker/docker-credential-helpers/credentials.Name={{.ProjectName}}"
14+
- "-X github.com/docker/docker-credential-helpers/credentials.Version={{.Version}}"
15+
- "-X github.com/docker/docker-credential-helpers/credentials.Revision={{.Commit}}"
1316
goos:
1417
- freebsd
1518
- windows
1619
- linux
1720
- darwin
1821
goarch:
1922
- amd64
20-
- "386"
21-
- arm
2223
- arm64
2324
binary: docker-credential-env
2425
archives:

0 commit comments

Comments
 (0)