We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cdfda3 + ff729f5 commit d01656aCopy full SHA for d01656a
.gitignore
@@ -19,6 +19,8 @@
19
20
# Go workspace file
21
go.work
22
+# Go coverage test
23
+coverage.out
24
25
build/
26
.vscode/
makefile
@@ -1,7 +1,9 @@
1
VERSION := $(shell cat VERSION)
2
3
-PKG:= kcl-lang.io/kcl
4
-LDFLAGS := -X $(PKG)/cmd.Version=$(VERSION)
+PKG:= kcl-lang.io/cli
+LDFLAGS := -X $(PKG)/pkg/version.version=$(VERSION)
5
+COVER_FILE ?= coverage.out
6
+SOURCE_PATHS ?= ./pkg/...
7
8
GO ?= go
9
pkg/version/version_test.go
@@ -9,7 +9,7 @@ func TestGetVersionInStr(t *testing.T) {
}{
10
{
11
name: "test get version in string",
12
- want: "0.3.6",
+ want: "0.7.0-alpha.1",
13
},
14
}
15
for _, tt := range tests {
0 commit comments