Skip to content

Commit

Permalink
fix: --version when a version is provided with -ldflags (go-task#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten authored Jul 5, 2024
1 parent 133086d commit 9ee4f21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ func init() {
if !ok || info.Main.Version == "" {
version = "unknown"
} else {
version = info.Main.Version
if version == "" {
version = info.Main.Version
}
sum = info.Main.Sum
}
}
Expand Down

0 comments on commit 9ee4f21

Please sign in to comment.