Skip to content

Commit

Permalink
Fix version output
Browse files Browse the repository at this point in the history
The refactoring moved the paths where the version information was
injected into.
  • Loading branch information
garethr committed Jul 24, 2019
1 parent 098534c commit 1e1565b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ builds:
- windows
- linux
- darwin
ldflags:
- -s -w -X github.com/instrumenta/conftest/pkg/constants.Version={{.Version}} -X github.com/instrumenta/conftest/pkg/constant.Commit={{.ShortCommit}} -X github.com/instrumenta/conftest/pkg/constant.Date={{.Date}}
archive:
replacements:
darwin: Darwin
Expand Down
2 changes: 1 addition & 1 deletion pkg/constants/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package constants

const (
var (
Version = "dev"
Commit = "none"
Date = "unknown"
Expand Down

0 comments on commit 1e1565b

Please sign in to comment.