From b56b03899a99ffbf941028d7dc684a98fe5b0712 Mon Sep 17 00:00:00 2001 From: Per Goncalves da Silva Date: Tue, 14 Jan 2025 14:28:50 +0100 Subject: [PATCH] add bingo-upgrade target (#3489) Signed-off-by: Per Goncalves da Silva Co-authored-by: Per Goncalves da Silva --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 042f299ed1..7ef00ffafc 100644 --- a/Makefile +++ b/Makefile @@ -185,6 +185,13 @@ vendor: #HELP Update vendored dependencies go mod tidy go mod vendor +.PHONY: bingo-upgrade +bingo-upgrade: $(BINGO) #EXHELP Upgrade tools + @for pkg in $$($(BINGO) list | awk '{ print $$3 }' | tail -n +3 | sed 's/@.*//'); do \ + echo -e "Upgrading \033[35m$$pkg\033[0m to latest..."; \ + $(BINGO) get "$$pkg@latest"; \ + done + #SECTION Testing # Note: We want to use TESTCMD = because we need it to be re-evaluated every time it is used