Skip to content

Commit

Permalink
Still trying to get embedded version working
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwickenden committed Aug 29, 2023
1 parent 2b29557 commit 76573dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
builds:
- main: .
binary: corpass
ldflags:
- -extldflags '-static'
env:
- CGO_ENABLED=0
goos:
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

var (
executable string = "corpass"
version string = ""
version string = "dev"
commit string = "none"
date string = "unknown"
generatorList string
Expand All @@ -37,7 +37,7 @@ func main() {
flag.Parse()

if printVersion {
fmt.Printf("%s %s (%s) %s", executable, version, commit, date)
fmt.Printf("%s %s (%s) built at %s", executable, version, commit, date)
return
}

Expand Down

0 comments on commit 76573dc

Please sign in to comment.