From e60c8ea105c9c88083dedac31ea4f649a4459767 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Thu, 17 Jul 2025 10:49:23 +1000 Subject: [PATCH] Add check for poetry install to regen-protobufs.sh This was failing in the CI because the poetry was not initialized. --- bin/regen-protobufs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/regen-protobufs.sh b/bin/regen-protobufs.sh index c7a1cb4..23def7b 100755 --- a/bin/regen-protobufs.sh +++ b/bin/regen-protobufs.sh @@ -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