Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit c7a839e

Browse files
committed
refactor: move ./cmd/main.go to ./main.go
1 parent 30a9a64 commit c7a839e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ builds:
2323
# ignore:
2424
# - goos: windows
2525
# goarch: arm64
26-
main: ./cmd
26+
main: .
2727
archives:
2828
- replacements:
2929
darwin: Darwin

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Default variable
22
APPROOT ?= kusionup
3-
GOSOURCE_PATHS ?= ./pkg/... ./cmd/...
3+
GOSOURCE_PATHS ?= ./pkg/...
44

55
include 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
3030
build-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
3737
build-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
4444
build-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+
.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Windows or otherwise interested users can download binaries directly from the Gi
6868
Starting 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

cmd/main.go renamed to main.go

File renamed without changes.

0 commit comments

Comments
 (0)