mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 13:58:55 +00:00
deps: bumping yq to v4.40.7
Since yq frequently updates, let's upgrade to a version from February to bypass potential issues with versions 4.41-4.43 for now. We can always upgrade to the newest version if necessary. Fixes #9354 Depends-on:github.com/kata-containers/tests#5818 Signed-off-by: Beraldo Leal <bleal@redhat.com>
This commit is contained in:
@@ -27,7 +27,17 @@ ifeq (,$(not_check_version))
|
||||
ifneq (,$(install_yq))
|
||||
$(error "ERROR: install yq failed")
|
||||
endif
|
||||
golang_version_min=$(shell $(GOPATH)/bin/yq r ../../versions.yaml languages.golang.version)
|
||||
|
||||
YQ_VERSION=$(shell $(GOPATH)/bin/yq --version | grep -oE "version v?[0-9]+" | grep -oE "[0-9]+")
|
||||
QUERY="languages.golang.version"
|
||||
|
||||
ifneq (,$(findstring 4,$(YQ_VERSION)))
|
||||
YQ_CMD=$(GOPATH)/bin/yq eval .$(QUERY) ../../versions.yaml
|
||||
else
|
||||
YQ_CMD=$(GOPATH)/bin/yq r ../../versions.yaml $(QUERY)
|
||||
endif
|
||||
|
||||
golang_version_min=$(shell $(YQ_CMD))
|
||||
|
||||
ifeq (,$(golang_version_min))
|
||||
$(error "ERROR: cannot determine minimum golang version")
|
||||
|
Reference in New Issue
Block a user