Skip to content

Commit

Permalink
Merge pull request #1939 from prestist/update-build-go-1.23
Browse files Browse the repository at this point in the history
build: drop package name when used with 'go clean' argument(s)
  • Loading branch information
jmarrero authored Sep 11, 2024
2 parents ccd95ce + 8c14f13 commit 49f4cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49f4cf2

Please sign in to comment.