From 8c14f1304f144dcbca0da3db516e2b9ebefd1f06 Mon Sep 17 00:00:00 2001 From: Steven Presti Date: Tue, 10 Sep 2024 15:30:04 -0400 Subject: [PATCH] build: drop package name when used with 'go clean' argument(s) I dont see mention of this change in the 1.23 changelog, however it is mentioned in the commit https://github.com/golang/go/commit/c22865fcfa1ec434e5655c652c6376fa2d0eb821 fixes: #1931 --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index dba50388b..9bf93d61e 100755 --- a/build +++ b/build @@ -28,7 +28,7 @@ export CGO_ENABLED=1 echo "Building ${NAME}..." # clean the cache since cgo isn't correctly handled by gocache. Test to see if this version # of go supports caching before trying to clear the cache -go clean -help 2>&1 | grep -F '[-cache]' >/dev/null && go clean -cache -testcache internal +go clean -help 2>&1 | grep -F '[-cache]' >/dev/null && go clean -cache -testcache go build -buildmode=pie -ldflags "${GLDFLAGS}" -o ${BIN_PATH}/${NAME} ${REPO_PATH}/internal NAME="ignition-validate"