fix(version): default to dev (#95)
`make build` injects the real version from git tags via ldflags. Avoid hardcoded version strings here. Signed-off-by: Guoguo <i@qwq.trade>
This commit is contained in:
parent
8e15c9093b
commit
92b8710f59
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
version = "0.1.0"
|
||||
version = "dev"
|
||||
buildTime string
|
||||
goVersion string
|
||||
)
|
||||
|
|
@ -43,7 +43,7 @@ var (
|
|||
const logo = "🦞"
|
||||
|
||||
func printVersion() {
|
||||
fmt.Printf("%s picoclaw v%s\n", logo, version)
|
||||
fmt.Printf("%s picoclaw %s\n", logo, version)
|
||||
if buildTime != "" {
|
||||
fmt.Printf(" Build: %s\n", buildTime)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue