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:
2
build
2
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"
|
||||
|
||||
Reference in New Issue
Block a user