Skip to content

Commit

Permalink
chore(Makefile)_: generate before run status backend (#5954)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin authored Oct 16, 2024
1 parent fadce93 commit 7971fd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ status-backend: ##@build Build status-backend to run status-go as HTTP server
status-backend: build/bin/status-backend

run-status-backend: PORT ?= 0
run-status-backend: generate
run-status-backend: ##@run Start status-backend server listening to localhost:PORT
go run ./cmd/status-backend --address localhost:${PORT}

Expand Down Expand Up @@ -323,7 +324,7 @@ generate: GO_GENERATE_CMD ?= $$(which go-generate-fast || echo 'go generate')
generate: export GO_GENERATE_FAST_DEBUG ?= false
generate: export GO_GENERATE_FAST_RECACHE ?= false
generate: ##@ Run generate for all given packages using go-generate-fast, fallback to `go generate` (e.g. for docker)
@GOROOT=$$(go env GOROOT) $(GO_GENERATE_CMD) -x $(PACKAGES)
@GOROOT=$$(go env GOROOT) $(GO_GENERATE_CMD) $(PACKAGES)

generate-contracts:
go generate ./contracts
Expand Down

0 comments on commit 7971fd3

Please sign in to comment.