Skip to content

Commit ddb3404

Browse files
committed
goreleaser: fix version passed to linker
1 parent a70f33f commit ddb3404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ builds:
1313
mod_timestamp: "{{ .CommitTimestamp }}"
1414
ldflags:
1515
- "-s -w"
16-
- "-X github.com/jzelinskie/cobrautil.Version=v{{ .Version }}"
16+
- "-X github.com/jzelinskie/cobrautil/v2.Version=v{{ .Version }}"
1717
nfpms:
1818
- vendor: "authzed inc."
1919
homepage: "https://spicedb.io"
@@ -53,7 +53,7 @@ brews:
5353
system "#{bin}/spicedb version"
5454
install: |
5555
if !File.exists? "spicedb"
56-
system "go build --ldflags \"-s -w -X github.com/jzelinskie/cobrautil.Version=$(git describe --always --abbrev=7 --dirty --tags)\" ./cmd/spicedb"
56+
system "go build --ldflags \"-s -w -X github.com/jzelinskie/cobrautil/v2.Version=$(git describe --always --abbrev=7 --dirty --tags)\" ./cmd/spicedb"
5757
end
5858
bin.install "spicedb"
5959
(bash_completion/"spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "bash")

0 commit comments

Comments
 (0)