Merge pull request #806 from meshtastic/fifieldt-patch-1

Add check for poetry install to regen-protobufs.sh
This commit is contained in:
Tom Fifield
2025-07-17 09:05:17 +08:00
committed by GitHub

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