Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Jun 21, 2023
1 parent dc37cf8 commit c37e201
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ proto-gen:

proto-check:
@if git diff --quiet --exit-code main...HEAD -- proto; then \
echo "No changes found in /proto directory between the currently checked out branch and main."; \
echo "Pass! No committed changes found in /proto directory between the currently checked out branch and main."; \
else \
echo "Changes found in /proto directory between the currently checked out branch and main."; \
echo "Committed changes found in /proto directory between the currently checked out branch and main."; \
modified_protos=$$(git diff --name-only main...HEAD proto); \
modified_pb_files= ; \
for proto_file in $${modified_protos}; do \
proto_name=$$(basename "$${proto_file}" .proto); \
pb_files=$$(find x/ccv -name "$${proto_name}.pb.go"); \
for pb_file in $${pb_files}; do \
if git diff --quiet --exit-code main...HEAD -- "$${pb_file}"; then \
echo "Missing uncommitted changes in $${pb_file}"; \
echo "Missing committed changes in $${pb_file}"; \
exit 1; \
else \
modified_pb_files+="$${pb_file} "; \
Expand Down

0 comments on commit c37e201

Please sign in to comment.