From 07bfc6bbbd437f4706ebf21df14c69935670b8d8 Mon Sep 17 00:00:00 2001 From: sbp-bvanb <126502840+sbp-bvanb@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:28:00 +0100 Subject: [PATCH] fix: [#147] Ensure that GOBIN is set to avoid assuming its value (#148) --- Taskfile.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 74b852d..863171d 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -12,7 +12,12 @@ vars: GCI: "{{.GOBIN}}/gci" GCI_SECTIONS: '{{.GCI_SECTIONS | default "-s standard -s default"}}' GCI_VERSION: 0.13.5 - GOBIN: ~/go/bin + GOBIN: + sh: | + if [ -z "${GOBIN}" ]; then + echo "GOBIN has not been not set. Ensure that it has been set on the system." + exit 1 + fi GOFUMPT_VERSION: v0.7.0 GOLANGCI_LINT_VERSION: 1.61.0 GOLANG_PARALLEL_TESTS: