mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 06:48:51 +00:00
Merge pull request #917 from marcov/gocheck
make: add ability to skip go version check
This commit is contained in:
@@ -59,7 +59,7 @@ function install_yq() {
|
|||||||
yq_version=$(basename "${yq_latest_url}")
|
yq_version=$(basename "${yq_latest_url}")
|
||||||
|
|
||||||
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
|
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
|
||||||
curl -o "${yq_path}" -L ${yq_url}
|
curl -o "${yq_path}" -LSs ${yq_url}
|
||||||
chmod +x ${yq_path}
|
chmod +x ${yq_path}
|
||||||
|
|
||||||
if ! command -v "${yq_path}" >/dev/null; then
|
if ! command -v "${yq_path}" >/dev/null; then
|
||||||
|
5
Makefile
5
Makefile
@@ -14,8 +14,11 @@ done)
|
|||||||
|
|
||||||
GOARCH=$(shell go env GOARCH)
|
GOARCH=$(shell go env GOARCH)
|
||||||
HOST_ARCH=$(shell arch)
|
HOST_ARCH=$(shell arch)
|
||||||
|
SKIP_GO_VERSION_CHECK=
|
||||||
|
|
||||||
include golang.mk
|
ifeq ($(SKIP_GO_VERSION_CHECK),)
|
||||||
|
include golang.mk
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),)
|
ifeq ($(ARCH),)
|
||||||
ARCH = $(GOARCH)
|
ARCH = $(GOARCH)
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
have_yq=$(shell if [ -x "$(GOPATH)/bin/yq" ]; then echo "true"; else echo ""; fi)
|
have_yq=$(shell if [ -x "$(GOPATH)/bin/yq" ]; then echo "true"; else echo ""; fi)
|
||||||
ifeq (,$(have_yq))
|
ifeq (,$(have_yq))
|
||||||
|
$(info INFO: yq was not found, installing it)
|
||||||
install_yq=$(shell .ci/install-yq.sh)
|
install_yq=$(shell .ci/install-yq.sh)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(install_yq))
|
ifneq (,$(install_yq))
|
||||||
|
Reference in New Issue
Block a user