Skip to content

Commit

Permalink
fix for depreciated option in goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstruck committed Mar 11, 2019
1 parent 8c25ef9 commit ab12c4f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ builds:
- CGO_ENABLED=0
ldflags: >
-X github.com/bmeg/grip/version.BuildDate={{.Date}}
-X github.com/bmeg/grip/version.GitCommit={{.Commit}}
-X github.com/bmeg/grip/version.GitCommit={{.ShortCommit}}
-X github.com/bmeg/grip/version.GitBranch={{.Env.GIT_BRANCH}}
-X github.com/bmeg/grip/version.GitUpstream={{.Env.GIT_UPSTREAM}}
-X github.com/bmeg/grip/version.Version={{.Version}}
dist: build/release

git:
short_hash: true

release:
draft: true

Expand All @@ -30,4 +27,4 @@ archive:
name_template: "{{.ProjectName}}-{{.Os}}-{{.Arch}}-{{.Version}}"

snapshot:
name_template: "SNAPSHOT-{{.Commit}}"
name_template: "SNAPSHOT-{{.ShortCommit}}"

0 comments on commit ab12c4f

Please sign in to comment.