From e182f4380c70cad32287aca533dd1324544eab4e Mon Sep 17 00:00:00 2001 From: Charlie Bareham Date: Mon, 17 Jun 2024 10:47:55 +0100 Subject: [PATCH] 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 --- tools/tlc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tlc/Makefile b/tools/tlc/Makefile index 2de311b21..e50b9dd3f 100644 --- a/tools/tlc/Makefile +++ b/tools/tlc/Makefile @@ -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 ./