Add check for poetry install to regen-protobufs.sh

This was failing in the CI because the poetry was not initialized.
This commit is contained in:
Tom Fifield authored and GitHub committed 2025-07-17 10:49:23 +10:00
1 parent 213faa0cae
commit e60c8ea105
1 file changed
+6
+6
View File
@@ -6,6 +6,12 @@ set -e
#gsed -i 's/import "\//import ".\//g' ./protobufs/meshtastic/*
#gsed -i 's/package meshtastic;//g' ./protobufs/meshtastic/*
POETRYDIR=$(poetry env info --path)
if [[ -z "${POETRYDIR}" ]]; then
poetry install
fi
# protoc looks for mypy plugin in the python path
source $(poetry env info --path)/bin/activate