Skip to content

Commit

Permalink
Merge pull request #1913 from jzelinskie/brew-head
Browse files Browse the repository at this point in the history
goreleaser: use build.head? in install
  • Loading branch information
jzelinskie authored May 23, 2024
2 parents da38ee1 + 79eb55c commit c51f10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ brews:
head "https://github.com/authzed/spicedb.git", :branch => "main"
url_template: "https://github.com/authzed/spicedb/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
install: |
unless File.exist? "spicedb"
if build.head?
versionVar = "github.com/jzelinskie/cobrautil/v2.Version"
versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)"
system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb"
Expand Down

0 comments on commit c51f10a

Please sign in to comment.