From 9ffc2a6ac7b922cad5c6d536e537bb96b9cfdae6 Mon Sep 17 00:00:00 2001
From: Chris Evich <cevich@redhat.com>
Date: Tue, 3 May 2022 13:59:00 -0400
Subject: [PATCH] Cirrus: Fix Makefile including 'hack' in $PATH

This path should never, ever, ever be included in `$PATH` as it is
almost guaranteed to cause serious and non-obvious breakage in CI.  Fix
it and include a warning comment.

Signed-off-by: Chris Evich <cevich@redhat.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 51b3d6d968..6ea207bca5 100644
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,8 @@ ifeq ($(GOBIN),)
 GOBIN := $(FIRST_GOPATH)/bin
 endif
 
-export PATH := $(PATH):$(GOBIN):$(CURDIR)/hack
+# This must never include the 'hack' directory
+export PATH := $(PATH):$(GOBIN)
 
 GOMD2MAN ?= $(shell command -v go-md2man || echo './test/tools/build/go-md2man')