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>
This commit is contained in:
Chris Evich
2022-05-03 13:59:00 -04:00
parent 18713f589c
commit 9ffc2a6ac7

View File

@ -134,7 +134,8 @@ ifeq ($(GOBIN),)
GOBIN := $(FIRST_GOPATH)/bin GOBIN := $(FIRST_GOPATH)/bin
endif 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') GOMD2MAN ?= $(shell command -v go-md2man || echo './test/tools/build/go-md2man')