Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions utils/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ build() {
echo Build $IMAGE_NAME
if [[ $IMAGE_NAME == runner ]] && [[ $DOCKER_MODE != 1 ]]; then
if [[ -z "${IN_NIX_SHELL:-}" ]]; then
# Homebrew/Python upgrades can invalidate an existing venv.
# If the interpreter is broken, recreate the venv automatically.
if [ -d "venv/" ] && ! venv/bin/python -V >/dev/null 2>&1
then
echo "Existing venv is broken. Recreating it."
rm -rf venv
fi

if [ ! -d "venv/" ]
then
echo "Build virtual env"
Expand Down
Loading