build: make poetry use existing lock file

This makes the build reproducible.

When `make dev-install` was run, it would ignore the existing
poetry lock file, install different versions of all the
libraries, then overwrite the lock file. Once `--no-update`
is added, it stops doing that, and installs exactly what is
in the poetry lock file.

Change-Id: If62637a40504d23deb47a05347a272e1c13bf41e
Signed-off-by: Charlie Bareham <charlie.bareham@arm.com>
This commit is contained in:
Charlie Bareham 2024-06-17 10:47:55 +01:00 committed by Harrison Mutai
parent 1a0ebff784
commit e182f4380c

View file

@ -19,7 +19,7 @@ dist: clean
.PHONY: dev-install
dev-install:
poetry lock -n && poetry export --without-hashes > requirements.txt
poetry lock -n --no-update && poetry export --without-hashes > requirements.txt
poetry install -n
-poetry run mypy --install-types --non-interactive ./