diff --git a/hack/generate-ta-tasks.sh b/hack/generate-ta-tasks.sh index e5d4c6a5ac..8268155d6b 100755 --- a/hack/generate-ta-tasks.sh +++ b/hack/generate-ta-tasks.sh @@ -16,7 +16,13 @@ ROOT_DIR="$(git rev-parse --show-toplevel)" TASK_DIR="$(realpath "${ROOT_DIR}/task")" tash() { - go run -C "${ROOT_DIR}/ta-generator/" github.com/konflux-ci/build-definitions/ta-generator "$@" + tashbin="$(mktemp --dry-run)" + GOTOOLCHAIN=auto go build -C "${ROOT_DIR}/ta-generator/" -o "${tashbin}" + trap 'rm "${tashbin}"' EXIT + tash() { + "${tashbin}" "$@" + } + tash "$@" } declare -i changes=0