mirror of
https://github.com/meshtastic/python.git
synced 2025-12-31 03:47:55 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user