AT Protocol IPLD-CAR Repository toolkit (CLI)

fix version

tree 86b6bb27 01d970ef

Changed files
+3 -1
+1 -1
Makefile
··· 9 10 .PHONY: build 11 build: ## Build all executables 12 - go build -ldflags "-X main._version=v0.1.4" ./atr.go 13 b: 14 @make build 15
··· 9 10 .PHONY: build 11 build: ## Build all executables 12 + go build -ldflags "-X main._version=`git tag --sort=-version:refname | head -n 1`" ./atr.go 13 b: 14 @make build 15
+2
atr.go
··· 2 3 import ( 4 "github.com/atscan/atr/cmd" 5 ) 6 7 var _version string 8 9 func main() { 10 cmd.Execute() 11 } 12
··· 2 3 import ( 4 "github.com/atscan/atr/cmd" 5 + "github.com/atscan/atr/util/version" 6 ) 7 8 var _version string 9 10 func main() { 11 + version.Version(_version) 12 cmd.Execute() 13 } 14