Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Fix compile variable references
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencejones committed Mar 6, 2019
1 parent 2f1028a commit 6acccdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ builds:
goarch:
- amd64
ldflags: >
-X github.com/gocardless/pgreplay/cmd/main.Version={{.Version}}
-X github.com/gocardless/pgreplay/cmd/main.Commit={{.Commit}}
-X github.com/gocardless/pgreplay/cmd/main.Date={{.Date}}
-X main.Version={{.Version}}
-X main.Commit={{.Commit}}
-X main.Date={{.Date}}
-a
-installsuffix cgo
env:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
9 changes: 4 additions & 5 deletions cmd/pgreplay/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ func main() {

// Set by goreleaser
var (
Version = "dev"
Commit = "none"
Date = "unknown"
GoVersion = runtime.Version()
VersionStanza string
Version = "dev"
Commit = "none"
Date = "unknown"
GoVersion = runtime.Version()
)

func versionStanza() string {
Expand Down

0 comments on commit 6acccdb

Please sign in to comment.