From 238a07f8ff21cf7f3eb7c38d94e3803ba0112631 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Thu, 25 Jul 2019 15:40:07 +0200 Subject: [PATCH] add warning message for debugging tag issue --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f99f3107..76dc0315 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,11 @@ GIT_TAG := $(shell git describe --always) endif # get latest k3s version -K3S_TAG := $(shell curl --silent "https://api.github.com/repos/rancher/k3s/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') +K3S_TAG := $(shell curl --silent "https://api.github.com/repos/rancher/k3s/releases/lates" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') ifeq ($(K3S_TAG),) -$(error "K3S_TAG undefined: couldn't get latest k3s image tag!") +$(warning K3S_TAG undefined: couldn't get latest k3s image tag!) +$(warning Output of curl: $(shell curl --silent "https://api.github.com/repos/rancher/k3s/releases/latest")) +$(error exiting) endif # Go options