build: fix the confusing build message if yq doesn't exist in GOPATH/bin

The build message shows that yq was not found when I tried to build
runtime binaries, but I've actually installed yq by yum install.

Signed-off-by: cncal <flycalvin@qq.com>
This commit is contained in:
cncal 2024-05-02 07:56:56 +08:00
parent 3456483df9
commit 48d873b52b

View File

@ -21,7 +21,7 @@ endif
ifeq (,$(not_check_version))
have_yq=$(shell if [ -x "$(GOPATH)/bin/yq" ]; then echo "true"; else echo ""; fi)
ifeq (,$(have_yq))
$(info INFO: yq was not found, installing it)
$(info INFO: yq was not found in GOPATH/bin, installing it)
install_yq=$(shell ../../ci/install_yq.sh)
endif
ifneq (,$(install_yq))