From 94782320911be41c5a2b95bd42f39fc687d82993 Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:09:59 +0100 Subject: [PATCH] chore: Delete poetry.lock if there's a local one lurking --- update_requirements.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_requirements.sh b/update_requirements.sh index fd7299f..fc1900e 100755 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -3,6 +3,9 @@ # update the requirements.txt, which is what we actually use to pull # in our Python dependencies. So we need to run this to generate a # new requirements.txt from the updated files. +if ! [ -f poetry.lock ]; then + rm poetry.lock +fi poetry export --format requirements.txt --output requirements.txt poetry export --format requirements.txt --output requirements.dev --with dev # of course this assumes that poetry is installed, which is done by: