1
0
mirror of https://github.com/go-task/task.git synced 2025-05-31 23:19:42 +02:00

fix: --version when a version is provided with -ldflags (#1711)

This commit is contained in:
Valentin Maerten 2024-07-05 19:53:36 +02:00 committed by GitHub
parent 133086d647
commit 9ee4f21d62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}