Skip to content

Commit

Permalink
chore: adjust makefile and ci scripts
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 24, 2023
1 parent 0cdfda3 commit ff729f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

# Go workspace file
go.work
# Go coverage test
coverage.out

build/
.vscode/
Expand Down
6 changes: 4 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
VERSION := $(shell cat VERSION)

PKG:= kcl-lang.io/kcl
LDFLAGS := -X $(PKG)/cmd.Version=$(VERSION)
PKG:= kcl-lang.io/cli
LDFLAGS := -X $(PKG)/pkg/version.version=$(VERSION)
COVER_FILE ?= coverage.out
SOURCE_PATHS ?= ./pkg/...

GO ?= go

Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func TestGetVersionInStr(t *testing.T) {
}{
{
name: "test get version in string",
want: "0.3.6",
want: "0.7.0-alpha.1",
},
}
for _, tt := range tests {
Expand Down

0 comments on commit ff729f5

Please sign in to comment.