Skip to content

Commit bc38dcc

Browse files
committed
use dist folder to build artifacts
1 parent a1329a9 commit bc38dcc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.vscode
22
dist
3-
kubectl-neat_*

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ test: test-unit test-component test-kubectl test-krew
1414
test-unit:
1515
go test -v ./...
1616

17-
test-e2e: kubectl-neat_$(os) dist/kubectl-neat_$(os).tar.gz dist/checksums.txt
17+
test-e2e: dirst/kubectl-neat_$(os) dist/kubectl-neat_$(os).tar.gz dist/checksums.txt
1818
bats ./test/e2e-cli.bats
1919
bats ./test/e2e-kubectl.bats
2020
bats ./test/e2e-krew.bats
2121

22-
build: kubectl-neat_$(os)
22+
build: dist/kubectl-neat_$(os)
2323

2424
SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
25-
kubectl-neat_%: $(SRC)
26-
GOOS=$* go build -o $(@F)
25+
dist/kubectl-neat_%: $(SRC)
26+
GOOS=$* go build -o dist/$(@F)
2727

2828
# release by default will not publish. run with `publish=1` to publish
2929
goreleaserflags = --skip-publish --snapshot
@@ -52,4 +52,3 @@ release: dist/kubectl-neat_darwin.tar.gz dist/kubectl-neat_linux.tar.gz dist/che
5252

5353
clean:
5454
rm -rf dist
55-
rm kubectl-neat*

0 commit comments

Comments
 (0)