Skip to content

Commit 8bb4768

Browse files
author
Michal Tichák
committed
[build] add check whether we are in alidist environment
1 parent 5706306 commit 8bb4768

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ wf-unprocessed*
1111
wf-processed*
1212
*.*.old
1313
coverage_results
14+
.envrc

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ generate:
150150
ifndef HAS_PROTOC
151151
$(MAKE) tools/protoc
152152
endif
153+
@if [ -z "$(PROTOBUF_VERSION)" ]; then \
154+
echo "Warning: PROTOBUF_VERSION env var not detected are you sure you are generating from alidist environment?"; \
155+
fi
153156
@for gendir in $(GENERATE_DIRS); do \
154157
echo -e "\033[1;33mgo generate\033[0m $$gendir"; \
155158
PATH="$(ROOT_DIR)/tools:$$PATH" go generate $(VERBOSE_$(V)) $$gendir; \

0 commit comments

Comments
 (0)