From 8bb47685bb7329c4b3064d135a82fda82dc0e190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tich=C3=A1k?= Date: Fri, 15 Aug 2025 12:25:59 +0200 Subject: [PATCH] [build] add check whether we are in alidist environment --- .gitignore | 1 + Makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 26c35b57..44864415 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ wf-unprocessed* wf-processed* *.*.old coverage_results +.envrc diff --git a/Makefile b/Makefile index 483758d5..58184a10 100644 --- a/Makefile +++ b/Makefile @@ -150,6 +150,9 @@ generate: ifndef HAS_PROTOC $(MAKE) tools/protoc endif + @if [ -z "$(PROTOBUF_VERSION)" ]; then \ + echo "Warning: PROTOBUF_VERSION env var not detected are you sure you are generating from alidist environment?"; \ + fi @for gendir in $(GENERATE_DIRS); do \ echo -e "\033[1;33mgo generate\033[0m $$gendir"; \ PATH="$(ROOT_DIR)/tools:$$PATH" go generate $(VERBOSE_$(V)) $$gendir; \