1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-05 15:47:26 +01:00

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 c22865fcfa

fixes: #1931
This commit is contained in:
Steven Presti
2024-09-10 15:30:04 -04:00
parent 3b3a27b645
commit 8c14f1304f

2
build
View File

@@ -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"