Skip to content

Commit

Permalink
chore: add proto_clean_pulsar make target
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Feb 12, 2024
1 parent 1fd4af8 commit de3420f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ proto_regen: ## Delete existing protobuf artifacts and regenerate them
find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm
ignite generate proto-go --yes

.PHONY: proto_clean_pulsar
proto_clean_pulsar: ## TODO: explain...
@find ./ -name "*.go" | xargs --no-run-if-empty sed -i -E 's,(^[[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),///\1,'
find ./ -name "*.pulsar.go" | xargs --no-run-if-empty rm
ignite generate proto-go --yes
find ./ -name "*.go" | xargs --no-run-if-empty sed -i -E 's,^///([[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),\1,'

#######################
### Docker Helpers ###
#######################
Expand Down

0 comments on commit de3420f

Please sign in to comment.