Skip to content

Commit b1fc311

Browse files
author
Per Goncalves da Silva
committed
Add bingo-upgrade target to Makefile
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent c77fe16 commit b1fc311

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ image-upstream:
103103
lint:
104104
find . -type f -name '*.go' ! -name '*.pb.go' -print0 | xargs -0 goimports -w
105105

106+
.PHONY: bingo-upgrade
107+
bingo-upgrade: $(BINGO) #EXHELP Upgrade tools
108+
@for pkg in $$($(BINGO) list | awk '{ print $$1 }' | tail -n +3); do \
109+
echo "Upgrading $$pkg to latest..."; \
110+
$(BINGO) get "$$pkg@latest"; \
111+
done
112+
106113
.PHONY: codegen
107114
codegen: $(PROTOC) $(PROTOC_GEN_GO_GRPC)
108115
$(PROTOC) --plugin=protoc-gen-go=$(PROTOC_GEN_GO_GRPC) -I pkg/api/ --go_out=pkg/api pkg/api/*.proto

0 commit comments

Comments
 (0)