Skip to content

Commit b56b038

Browse files
perdasilvaPer Goncalves da Silva
and
Per Goncalves da Silva
authored
add bingo-upgrade target (#3489)
Signed-off-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Per Goncalves da Silva <[email protected]>
1 parent 5cff440 commit b56b038

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ vendor: #HELP Update vendored dependencies
185185
go mod tidy
186186
go mod vendor
187187

188+
.PHONY: bingo-upgrade
189+
bingo-upgrade: $(BINGO) #EXHELP Upgrade tools
190+
@for pkg in $$($(BINGO) list | awk '{ print $$3 }' | tail -n +3 | sed 's/@.*//'); do \
191+
echo -e "Upgrading \033[35m$$pkg\033[0m to latest..."; \
192+
$(BINGO) get "$$pkg@latest"; \
193+
done
194+
188195
#SECTION Testing
189196

190197
# Note: We want to use TESTCMD = because we need it to be re-evaluated every time it is used

0 commit comments

Comments
 (0)