From 7fc66498b94580fc2e5bd6ec554d6dd25caa57fb Mon Sep 17 00:00:00 2001 From: Christopher Crone Date: Thu, 26 Mar 2020 15:04:41 +0100 Subject: [PATCH] Output built binary in bin/ Signed-off-by: Christopher Crone --- .dockerignore | 1 + Makefile | 3 ++- scripts/validate/fileheader | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +bin/ diff --git a/Makefile b/Makefile index f4e2f08..697091a 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,8 @@ GOFLAGS=-mod=vendor .PHONY: build build: ## Build compose-ref binary - GOPRIVATE=$(PACKAGE) GOFLAGS=$(GOFLAGS) go build compose-ref.go + @mkdir -p bin/ + GOPRIVATE=$(PACKAGE) GOFLAGS=$(GOFLAGS) go build -o bin/compose-ref compose-ref.go .PHONY: test test: ## Run tests diff --git a/scripts/validate/fileheader b/scripts/validate/fileheader index 5144210..1d3f564 100755 --- a/scripts/validate/fileheader +++ b/scripts/validate/fileheader @@ -25,4 +25,4 @@ fi BASEPATH="${1-}" -ltag -t "${BASEPATH}scripts/validate/template" --excludes "validate vendor" --check -v +ltag -t "${BASEPATH}scripts/validate/template" --excludes "bin validate vendor" --check -v