From de3420f43ea4bc4b91a3ce95343b5bea9baffdde Mon Sep 17 00:00:00 2001 From: Bryan White Date: Mon, 12 Feb 2024 08:44:58 +0100 Subject: [PATCH] chore: add `proto_clean_pulsar` make target --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 5774821b0..7932c589b 100644 --- a/Makefile +++ b/Makefile @@ -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 ### #######################