Skip to content

Commit

Permalink
Ensure state of devutils is reflected in poetry.lock
Browse files Browse the repository at this point in the history
Ref. eng/recordflux/RecordFlux!1490
  • Loading branch information
treiher committed Mar 22, 2024
1 parent 4fef4ab commit bf61e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ BUILD_DEPS = $(DEVEL_VENV)/lib/python$(PYTHON_VERSION)/site-packages/langkit
$(BUILD_DEPS):: export PYTHONPATH=
$(BUILD_DEPS): $(CONTRIB) $(DEVEL_VENV) $(PROJECT_MANAGEMENT)
$(POETRY) install -v --no-root --only=build
@# Ensure that the state of devutils is correctly reflected in the lock file when changes are made.
@# For some reason, the command needs to be run twice to get a deterministic result.
$(POETRY) add --group=dev "./$(DEVUTILS_DIR)[devel]"
$(POETRY) add --group=dev "./$(DEVUTILS_DIR)[devel]"

# --- Setup: Langkit-based parser ---

Expand Down
1 change: 0 additions & 1 deletion doc/development_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ Alternatively, RecordFlux can be executed also via Poetry by executing `.venv.po

Poetry locks the dependencies to ensure deterministic test results.
`poetry lock` creates the lock file `poetry.lock` based on the dependencies listed in `pyproject.toml`.
If `devutils` has been changed, execute `poetry add --group=dev "./devutils[devel]"` to correctly reflect its state in the lock file.

VS Code extension
=================
Expand Down

0 comments on commit bf61e34

Please sign in to comment.