Skip to content

Commit e60c8ea

Browse files
authored
Add check for poetry install to regen-protobufs.sh
This was failing in the CI because the poetry was not initialized.
1 parent 213faa0 commit e60c8ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/regen-protobufs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ set -e
66
#gsed -i 's/import "\//import ".\//g' ./protobufs/meshtastic/*
77
#gsed -i 's/package meshtastic;//g' ./protobufs/meshtastic/*
88

9+
POETRYDIR=$(poetry env info --path)
10+
11+
if [[ -z "${POETRYDIR}" ]]; then
12+
poetry install
13+
fi
14+
915
# protoc looks for mypy plugin in the python path
1016
source $(poetry env info --path)/bin/activate
1117

0 commit comments

Comments
 (0)