diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2022-11-02 20:23:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 20:23:57 +0300 |
commit | 9cf062d8d454179b3d36f7ac67430904d49a1569 (patch) | |
tree | 89435160fab4a8bba09a8dfdfdce8fd5059cea74 | |
parent | 63de0ca9e6c838112664beedefd56abe361d20d6 (diff) |
disable poetry's cache (#9453)
-rwxr-xr-x | tools/pinning/common/export-pinned-dependencies.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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. |