Skip to content

Commit 432f2ae

Browse files
committed
Fix make publish-typegen
1 parent ca9cd06 commit 432f2ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

go/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
GOPATH := $(shell go env GOPATH)
44
OUT_DIR := .out
5+
CLI_BIN := ../ts/create-kpt-functions/bin/
56

67
all: fix fmt test test-e2e lint
78

@@ -33,5 +34,7 @@ build-typegen: fix fmt test lint
3334
env GOOS=windows GOARCH=amd64 go build -o $(OUT_DIR)/typegen_windows_amd64 ./cmd/typegen
3435

3536
publish-typegen: build-typegen
36-
cp $(OUT_DIR)/typegen* ../ts/create-kpt-functions/bin/
37+
rm -rf $(CLI_BIN)
38+
mkdir -p $(CLI_BIN)
39+
cp $(OUT_DIR)/typegen* $(CLI_BIN)
3740

0 commit comments

Comments
 (0)