From bed0f4506af4c0f5e7a86c38d7625e1ffcae54b5 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Tue, 3 Dec 2024 05:04:56 +0000 Subject: [PATCH] Get the default version from vendored cilium/charts repo Get the default Cilium version from vendored cilium/charts repo so that the build is reproducible. Fixes: #2870 Signed-off-by: Michi Mutsuzaki --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 18e8a5b00d..c4dcfde00a 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ GO_TAGS ?= TARGET=cilium INSTALL = $(QUIET)install BINDIR ?= /usr/local/bin -CILIUM_VERSION=$(shell curl -s https://raw.githubusercontent.com/cilium/cilium/main/stable.txt) +CILIUM_VERSION=v$(shell ls vendor/github.com/cilium/charts/ | grep -E "cilium-[0-9]+\.[0-9]+\.[0-9]+\.tgz" | sort -V | tail -n 1 | sed -E 's/cilium-([0-9]+\.[0-9]+\.[0-9]+).tgz/\1/') CLI_VERSION=$(shell git describe --tags --always) STRIP_DEBUG=-w -s ifdef DEBUG