Skip to content

Commit

Permalink
chore(build): remove package to go clean -cache
Browse files Browse the repository at this point in the history
"go: clean -cache cannot be used with package arguments"
  • Loading branch information
guilhem committed Sep 10, 2024
1 parent 3e7c44e commit fe468da
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 fe468da

Please sign in to comment.