delete eggs before running poetry (#8865)

This commit is contained in:
Brad Warren 2021-05-31 00:03:25 -07:00 committed by GitHub
parent 492b578662
commit 968cc5801b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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