Skip to content

Commit

Permalink
python: sprinkle exits in setup scripts to trigger task errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Nov 19, 2024
1 parent 70a9433 commit 4986b6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/languages/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,15 @@ let
echo "$ACTUAL_UV_CHECKSUM" > "$UV_CHECKSUM_FILE"
else
echo "uv sync failed. Run 'uv sync' manually." >&2
exit 1
fi
fi
}
if [ ! -f "pyproject.toml" ]
then
echo "No pyproject.toml found. Make sure you have a pyproject.toml file in your project." >&2
exit 1
else
_devenv_uv_sync
fi
Expand Down Expand Up @@ -208,13 +210,15 @@ let
echo "$ACTUAL_POETRY_CHECKSUM" > "$POETRY_CHECKSUM_FILE"
else
echo "Poetry install failed. Run 'poetry install' manually."
exit 1
fi
fi
}
if [ ! -f "pyproject.toml" ]
then
echo "No pyproject.toml found. Run 'poetry init' to create one." >&2
exit 1
else
_devenv_init_poetry_venv
${lib.optionalString cfg.poetry.install.enable ''
Expand Down

0 comments on commit 4986b6e

Please sign in to comment.