Skip to content

Commit 51910ac

Browse files
authored
build: Remove noisy build messages (#826)
By switching the way that make assigns variables, the shell calls to determine the snapshot image version will only be called when necessary, rather than when parsing the Makefile. This cleans up noisy build messages, which do not break the build but are noisy.
1 parent e005de2 commit 51910ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make/dev.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dev.run-on-kind: kind.create clusterctl.init
77
ifndef SKIP_BUILD
88
dev.run-on-kind: release-snapshot
99
endif
10-
dev.run-on-kind: SNAPSHOT_VERSION := $(shell gojq -r '.version+"-"+.runtime.goarch' dist/metadata.json)
10+
dev.run-on-kind: SNAPSHOT_VERSION = $(shell gojq -r '.version+"-"+.runtime.goarch' dist/metadata.json)
1111
dev.run-on-kind:
1212
kind load docker-image --name $(KIND_CLUSTER_NAME) \
1313
ko.local/cluster-api-runtime-extensions-nutanix:$(SNAPSHOT_VERSION) \
@@ -27,7 +27,7 @@ dev.update-webhook-image-on-kind: export KUBECONFIG := $(KIND_KUBECONFIG)
2727
ifndef SKIP_BUILD
2828
dev.update-webhook-image-on-kind: release-snapshot
2929
endif
30-
dev.update-webhook-image-on-kind: SNAPSHOT_VERSION := $(shell gojq -r '.version+"-"+.runtime.goarch' dist/metadata.json)
30+
dev.update-webhook-image-on-kind: SNAPSHOT_VERSION = $(shell gojq -r '.version+"-"+.runtime.goarch' dist/metadata.json)
3131
dev.update-webhook-image-on-kind:
3232
kind load docker-image --name $(KIND_CLUSTER_NAME) \
3333
ko.local/cluster-api-runtime-extensions-nutanix:$(SNAPSHOT_VERSION)

0 commit comments

Comments
 (0)