mirror of
https://github.com/go-task/task.git
synced 2025-11-27 22:38:20 +02:00
fix: checksum override when passed via ldflags (#1830)
This commit is contained in:
@@ -18,9 +18,11 @@ func init() {
|
|||||||
if version == "" {
|
if version == "" {
|
||||||
version = info.Main.Version
|
version = info.Main.Version
|
||||||
}
|
}
|
||||||
|
if sum == "" {
|
||||||
sum = info.Main.Sum
|
sum = info.Main.Sum
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func GetVersion() string {
|
func GetVersion() string {
|
||||||
return version
|
return version
|
||||||
|
|||||||
Reference in New Issue
Block a user