From 9cf062d8d454179b3d36f7ac67430904d49a1569 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Wed, 2 Nov 2022 10:23:57 -0700 Subject: [PATCH] disable poetry's cache (#9453) --- tools/pinning/common/export-pinned-dependencies.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/pinning/common/export-pinned-dependencies.sh b/tools/pinning/common/export-pinned-dependencies.sh index c52c629ae..e1c93b0dc 100755 --- a/tools/pinning/common/export-pinned-dependencies.sh +++ b/tools/pinning/common/export-pinned-dependencies.sh @@ -37,7 +37,10 @@ if [ -f poetry.lock ]; then rm poetry.lock fi -poetry lock >&2 +# If you're running this with different Python versions (say to update both our +# "current" and "oldest" pinnings), poetry's cache can become corrupted causing +# poetry to hang indefinitely. --no-cache avoids this. +poetry lock --no-cache >&2 trap 'rm poetry.lock' EXIT # We need to remove local packages from the output.