-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry Update always re-installs *all* dependencies -- again! #4674
Comments
I have the output of `poetry install -vvv' in a gist but I don't see any errors there. |
This typically happens (based on your output) when poetry thinks that the existing package was installed as file dependency and the new lock file tells it that it should be installed as a regular dependency, hence the I attempted to reproduce this using the following, but was not successful. Am I missing something? podman run --rm -i --entrypoint bash python:3.9 <<EOF
set -xe
python -m pip install -q --pre poetry==1.2.0a2
poetry --version
install -d foobar
pushd foobar
cat > pyproject.toml <<TOML
[tool.poetry]
name = "testing-poetry"
description = "poetry update reinstalls same versions"
version = "0.1.0"
authors = ["Me <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
fastapi = "^0.68.0"
pydantic = "^1.8.2"
uvicorn = "^0.15.0"
[tool.poetry.dev-dependencies]
black = "^21.9b0"
pre-commit = "^2.15.0"
pre-commit-hooks = "^4.0.1"
reorder-python-imports = "^2.6.0"
[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.core.masonry.api"
TOML
poetry install
poetry update
EOF If not, then it could be something to do with your environment. I'd recommend nuking the virtual environment and recreating it. |
The only variable I could think of here is the custom repository usage. (Related: #4385) |
Might also be related to #4669. |
I find that if I replace Tracing this down, I find that only those dependencies that have a section
in For now hence I use |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
This is the same symptom reported in #2534, but that was closed, and this is with the latest alpha. Running
poetry update
reinstalls the same versions of all the dependencies:The text was updated successfully, but these errors were encountered: