From 8cb434f1e535887f492f935e760342e05f673322 Mon Sep 17 00:00:00 2001 From: kurokobo <2920259+kurokobo@users.noreply.github.com> Date: Thu, 2 Feb 2023 14:34:58 +0900 Subject: [PATCH] fix: remove unnecessary subdirectory tar.gz --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index abfc8c0ad..757c858a3 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ build-package: @echo "Building and packaging binary for $(GOOS)/$(GOARCH) as dist/$(DIST).tar.gz" && \ mkdir -p dist/$(DIST) && \ GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 go build -o dist/$(DIST)/$(BINNAME) $(DEBUGFLAGS) -ldflags "-X 'github.com/ansible/receptor/internal/version.Version=$(VERSION)'" $(TAGPARAM) ./cmd/receptor-cl && \ - tar -C dist -zcf dist/$(DIST).tar.gz $(DIST)/$(BINNAME) && \ + tar -C dist/$(DIST) -zcf dist/$(DIST).tar.gz $(BINNAME) && \ cd dist/ && sha256sum $(DIST).tar.gz >> checksums.txt RUNTEST ?=