From 9a7ba1075594c9091eadb8837b1dd24ef7417099 Mon Sep 17 00:00:00 2001 From: Damien Grisonnet Date: Mon, 6 Apr 2020 13:30:15 +0200 Subject: [PATCH] build.sh: update PATH to use project tooling Signed-off-by: Damien Grisonnet --- Makefile | 2 +- README.md | 3 +++ build.sh | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f47734f0..b43eb765 100644 --- a/Makefile +++ b/Makefile @@ -50,4 +50,4 @@ $(BIN_DIR): $(TOOLING): $(BIN_DIR) @echo Installing tools from scripts/tools.go - @cd scripts && cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go build -o $(BIN_DIR) % + @cat scripts/tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go build -o $(BIN_DIR) % diff --git a/README.md b/README.md index 3e9fa948..28aa8a25 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,9 @@ set -x # only exit with zero if all commands of the pipeline exit successfully set -o pipefail +# Make sure to use project tooling +PATH="$(pwd)/tmp/bin:${PATH}" + # Make sure to start with a clean 'manifests' dir rm -rf manifests mkdir -p manifests/setup diff --git a/build.sh b/build.sh index 0663889d..a61af846 100755 --- a/build.sh +++ b/build.sh @@ -7,6 +7,9 @@ set -x # only exit with zero if all commands of the pipeline exit successfully set -o pipefail +# Make sure to use project tooling +PATH="$(pwd)/tmp/bin:${PATH}" + # Make sure to start with a clean 'manifests' dir rm -rf manifests mkdir -p manifests/setup