Multiple lock files feature doesn't seems to work for VCS dependencies #1815
Unanswered
liran-cohen-hs
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Because you are adding two different specifications for the same package, you need to make them in separate lockfiles or otherwise one will override the other. Follow this steps: pdm add "git+ssh://[email protected]/HiredScore/[email protected]#egg=hs_gimme"
# This will create a lockfile named pdm.lock that only contains "default" group
pdm add -e ../gimme --dev -L pdm.dev.lock
# This will create a lockfile named pdm.dev.lock that contains the editalbe local copy
# To install the default version:
pdm install
# Or to install for development:
pdm install -L pdm.dev.lock |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to use this feature for developers to be able to use inner dependencies from local version
didn't try it with regular dependency (from pypi)
Tried 2 different methods:
1 - using PDM add commands, the second one always seems to fail
running:
pdm add "git+ssh://[email protected]/HiredScore/[email protected]#egg=hs_gimme"
then
pdm add -e ../gimme --dev
results in:
2 - using one PDM add command and the second dependency I've put manually
in this case, the dev dependency is ignored
running:
pdm add "git+ssh://[email protected]/HiredScore/[email protected]#egg=hs_gimme"
then, adding this lines manually to pyproject.toml:
and running
pdm lock
is ignoring the dev dependency I added, in addition, anypdm add
command will now fail with the same resolution error from step 1referring to this feature:
https://pdm.fming.dev/latest/usage/dependency/#specify-the-lockfile-to-use
I am on the latest PDM version (2.5.0b0)
This is a blocker for us in migrating to PDM, as this feature of developing locally with editable option is widely used across the company
Thanks
Beta Was this translation helpful? Give feedback.
All reactions