mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-02 20:14:41 +00:00
Return 0.0.0-unknown version if building without a git repo
This commit is contained in:
parent
cbc250b7d0
commit
a48c991958
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ func main() {
|
|||
version, err := semver.ParseTolerant(versionStr)
|
||||
if err != nil {
|
||||
// no version tag found so just return what ever we can find.
|
||||
fmt.Println(getTag())
|
||||
fmt.Println("0.0.0-unknown")
|
||||
return
|
||||
}
|
||||
// Get the tag of the current revision.
|
||||
|
|
|
|||
Loading…
Reference in a new issue