This repository was archived by the owner on Jun 25, 2024. It is now read-only.
File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ builds:
23
23
# ignore:
24
24
# - goos: windows
25
25
# goarch: arm64
26
- main : ./cmd
26
+ main : .
27
27
archives :
28
28
- replacements :
29
29
darwin : Darwin
Original file line number Diff line number Diff line change 1
1
# Default variable
2
2
APPROOT ?= kusionup
3
- GOSOURCE_PATHS ?= ./pkg/... ./cmd/...
3
+ GOSOURCE_PATHS ?= ./pkg/...
4
4
5
5
include go.mk
6
6
@@ -24,25 +24,25 @@ build-darwin: gen-version ## Build for MacOS
24
24
-rm -rf ./build/darwin
25
25
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
26
26
go build -o ./build/darwin/$(APPROOT ) \
27
- ./cmd
27
+ .
28
28
29
29
.PHONY : build-darwin-arm64
30
30
build-darwin-arm64 : gen-version # # Build for MacOS-arm64
31
31
-rm -rf ./build/darwin-arm64
32
32
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 \
33
33
go build -o ./build/darwin-arm64/$(APPROOT ) \
34
- ./cmd
34
+ .
35
35
36
36
.PHONY : build-linux
37
37
build-linux : gen-version # # Build for Linux
38
38
-rm -rf ./build/linux
39
39
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
40
40
go build -o ./build/linux/$(APPROOT ) \
41
- ./cmd
41
+ .
42
42
43
43
.PHONY : build-windows
44
44
build-windows : gen-version # # Build for Windows
45
45
-rm -rf ./build/windows
46
46
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
47
47
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
68
68
Starting with Go 1.17, you can install ` kusionup ` from source using go install:
69
69
70
70
```
71
- go install github.com/KusionStack/kusionup/cmd @latest && kusionup init
71
+ go install github.com/KusionStack/kusionup@latest && kusionup init
72
72
```
73
73
74
74
### Docker
File renamed without changes.
You can’t perform that action at this time.
0 commit comments