Skip to content

Commit

Permalink
Add bingo-upgrade target to Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
  • Loading branch information
Per Goncalves da Silva committed Aug 29, 2024
1 parent c070c92 commit 506daa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ vet:
fmt:
go fmt ./...


.PHONY: bingo-upgrade
bingo-upgrade: $(BINGO) ## Upgrade tools
@for pkg in $$($(BINGO) list | awk '{ print $$1 }' | tail -n +3); do \
echo "Upgrading $$pkg to latest..."; \
$(BINGO) get "$$pkg@latest"; \
done

.PHONY: build
build: vet fmt
go build $(GO_BUILD_ARGS) -o bin/kubectl-operator
Expand Down

0 comments on commit 506daa6

Please sign in to comment.