From 968cc5801b6b4df8ab965f708bbd57b669eb4d42 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 31 May 2021 00:03:25 -0700 Subject: [PATCH] delete eggs before running poetry (#8865) --- tools/pinning/pin.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/pinning/pin.sh b/tools/pinning/pin.sh index ce47f02a0..91d20dc7c 100755 --- a/tools/pinning/pin.sh +++ b/tools/pinning/pin.sh @@ -17,6 +17,12 @@ if ! command -v poetry >/dev/null; then exit 1 fi +# Old eggs can cause outdated dependency information to be used by poetry so we +# delete them before generating the lock file. See +# https://github.com/python-poetry/poetry/issues/4103 for more info. +cd "${REPO_ROOT}" +rm -rf */*.egg-info + cd "${WORK_DIR}" if [ -f poetry.lock ]; then