-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Local path is not installable for non-selected dev dependency #2650
Comments
This is caused here in the pdm/src/pdm/models/requirements.py Lines 245 to 250 in c456a78
This check is only done if I don't know much about PDMs internals, but I think it would be nice if PDM would just ignore it when a local file dependency that's not going to be installed has a path that exists but isn't installable, just like it handles the case if the path doesn't exist at all. Edit: An (ugly) workaround for me is to add a |
Hey @frostming, thanks for looking at it so quickly! However, I'm afraid 0ae5611 doesn't actually fix this. |
I think the |
Can you suggest a patch in a PR? |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
with these pyproject.toml and pdm.lock files:
docker build -f Dockerfile ../..
Actual behavior
We get an error because the dev dependency
workers-dev
(at../..
, i.e. at/
in the container) is not found in the container:Expected behavior
pdm sync --prod
should ignoreworkers-dev
as it's not selected for being installed.Environment Information
The text was updated successfully, but these errors were encountered: