Skip to content

Commit 9ea14f0

Browse files
committed
Added proper ldflags for version in goreleaser
1 parent ee7a138 commit 9ea14f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.goreleaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ before:
55
builds:
66
- env:
77
- CGO_ENABLED=0
8+
ldflags:
9+
- -X github.com/commitdev/zero/cmd.appVersion={{.Version}} -X github.com/commitdev/zero/cmd.appBuild={{.ShortCommit}}
810
archives:
911
- replacements:
1012
darwin: Darwin
@@ -34,8 +36,14 @@ brews:
3436
description: "Allow startup developers to ship to production on day 1."
3537
dependencies:
3638
- name: git
39+
type: optional
3740
- name: terraform
41+
type: optional
3842
- name: jq
43+
type: optional
3944
- name: awscli
45+
type: optional
46+
- name: kubectl
47+
type: optional
4048
test: |
4149
system "#{bin}/zero version"

0 commit comments

Comments
 (0)