Skip to content

Commit b239aed

Browse files
authored
Merge pull request #5454 from opensafely-core/KatieB5/update--uv-command-and-comment-in-prodenv-recipe
Add additional flags to `uv pip install` command in `prodenv` recipe
2 parents c0daee2 + 22308c5 commit b239aed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ prodenv: requirements-prod
6565

6666
# --no-deps so that we only install the packages explicitly listed in requirements.prod.txt.
6767
# https://docs.astral.sh/uv/reference/cli/#uv-pip-install--no-deps
68-
uv pip install -r requirements.prod.txt
68+
#--require-hashes enforces that every package has a hash entry in
69+
# the requirements file, keeping installs deterministic
70+
# https://docs.astral.sh/uv/reference/cli/#uv-pip-install--require-hashes
71+
uv pip install --no-deps --require-hashes -r requirements.prod.txt
6972
touch $VIRTUAL_ENV/.prod
7073

7174

0 commit comments

Comments
 (0)