-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest beta Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: MacOS Catalina 10.15.6
- Poetry version: 1.1.0b2
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/jeffcasavant/7454acfce0933e2f4758a35699e890aa
Issue
I have a git dependency that is defined with a branch instead of a specific commit or revision. As a result, the commit that the reference points to can change.
poetry update successfully updates the poetry.lock file with the correct latest commit, but the library in the virtual environment remains checked-out at the commit that was latest when poetry install was last run.
Replication
- Add a git-based dependency to a poetry project.
poetry install- Note the commit hash that was installed (e.g. inside
poetry shell,cd $VIRTUAL_ENV/src/<git dependency name> && git log | head -1) - Note the commit hash that was set in
poetry.lock(cat poetry.lock | grep -i <git dependency name> -B 2 | grep -i referenceworked for me, but obviously YMMV; you're looking for thereferencefield in thepackage.sourceblock with theurlequal to the git repository you installed from) - Push another commit to the git-based dependency.
poetry update <git dependency name>- Note that the reference in
poetry.lockhas changed - Note that the checked-out commit in
srchas not changed
I expected that since poetry.lock was updated that my virtualenv was updated as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected