This repository was archived by the owner on Jun 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ builds:
2323 # ignore:
2424 # - goos: windows
2525 # goarch: arm64
26- main : ./cmd
26+ main : .
2727archives :
2828 - replacements :
2929 darwin : Darwin
Original file line number Diff line number Diff line change 11# Default variable
22APPROOT ?= kusionup
3- GOSOURCE_PATHS ?= ./pkg/... ./cmd/...
3+ GOSOURCE_PATHS ?= ./pkg/...
44
55include go.mk
66
@@ -24,25 +24,25 @@ build-darwin: gen-version ## Build for MacOS
2424 -rm -rf ./build/darwin
2525 GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
2626 go build -o ./build/darwin/$(APPROOT ) \
27- ./cmd
27+ .
2828
2929.PHONY : build-darwin-arm64
3030build-darwin-arm64 : gen-version # # Build for MacOS-arm64
3131 -rm -rf ./build/darwin-arm64
3232 GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 \
3333 go build -o ./build/darwin-arm64/$(APPROOT ) \
34- ./cmd
34+ .
3535
3636.PHONY : build-linux
3737build-linux : gen-version # # Build for Linux
3838 -rm -rf ./build/linux
3939 GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
4040 go build -o ./build/linux/$(APPROOT ) \
41- ./cmd
41+ .
4242
4343.PHONY : build-windows
4444build-windows : gen-version # # Build for Windows
4545 -rm -rf ./build/windows
4646 GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
4747 go build -o ./build/windows/$(APPROOT ) .exe \
48- ./cmd
48+ .
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Windows or otherwise interested users can download binaries directly from the Gi
6868Starting with Go 1.17, you can install ` kusionup ` from source using go install:
6969
7070```
71- go install github.com/KusionStack/kusionup/cmd @latest && kusionup init
71+ go install github.com/KusionStack/kusionup@latest && kusionup init
7272```
7373
7474### Docker
File renamed without changes.
You can’t perform that action at this time.
0 commit comments