Skip to content

Commit 752dacd

Browse files
authored
chore: Don't print which error in Makefile (#1012)
The which binary is used to detect if client-gen is installed, and if it's not, the Makefile will install it. The initial detection prints an error if it's not found. This is misleading, as it is actually an expected situation.
1 parent 49fe355 commit 752dacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ CONTROLLER_GEN=$(shell which controller-gen)
130130

131131
.PHONY: client-gen
132132
client-gen:
133-
ifeq (, $(shell which client-gen))
133+
ifeq (, $(shell which client-gen 2>/dev/null))
134134
go install k8s.io/code-generator/cmd/[email protected]
135135
CLIENT_GEN=$(shell go env GOPATH)/bin/client-gen
136136
else

0 commit comments

Comments
 (0)