tangled
alpha
login
or
join now
atscan.net
/
atr
2
fork
atom
AT Protocol IPLD-CAR Repository toolkit (CLI)
2
fork
atom
overview
issues
pulls
pipelines
fix version
tree
2 years ago
86b6bb27
01d970ef
+3
-1
2 changed files
expand all
collapse all
unified
split
Makefile
atr.go
+1
-1
Makefile
···
9
9
10
10
.PHONY: build
11
11
build: ## Build all executables
12
12
-
go build -ldflags "-X main._version=v0.1.4" ./atr.go
12
12
+
go build -ldflags "-X main._version=`git tag --sort=-version:refname | head -n 1`" ./atr.go
13
13
b:
14
14
@make build
15
15
+2
atr.go
···
2
2
3
3
import (
4
4
"github.com/atscan/atr/cmd"
5
5
+
"github.com/atscan/atr/util/version"
5
6
)
6
7
7
8
var _version string
8
9
9
10
func main() {
11
11
+
version.Version(_version)
10
12
cmd.Execute()
11
13
}
12
14