-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
PDM sync/install parse all dependencies, regardless if they are included or not #3376
Comments
Your project file doesn't seem right:
You'd better not rely on a buggy behavior from an older version that occasionally works for your case. |
as for 2- we do use different lock files, didn't mention it but it worked perfect until the latest version |
@frostming same behavior |
What is pinned in |
we also have an empty "dev" group under |
Is the |
not in it's editable mode, in it's github version:
|
Oh, you mean the editable dependency is parsed, not installed. Then yes, it will be parsed at installation stage, this is the design. |
but the bug is still here, I am trying to install the non-develop without editable dependencies version and it tries to parse the editable version and therefore fails (because we don't clone all repositories in our CI process) |
Fixes #3376 Signed-off-by: Frost Ming <[email protected]>
Describe the bug
we have an "editable-inner" as well as "inner" dependency groups
in the newest PDM version (2.22.2) when we install in our CI and don't include the "editable-inner" group, it still tries to parse it and fails (since we don't have the local version of the editable dependency)
To reproduce
Example pyproject.toml
and run:
pdm sync --prod -G inner
Expected Behavior
I expect the PDM sync command to ignore the "editable-inner" group (as happened pre 2.22.2) and install gunicorn and "config-resolver" from github
Environment Information
PDM version:
2.22.2
Python Interpreter:
/Users/liran.cohen/hiredscore/git/screenit/.venv/bin/python (3.9)
Project Root:
/Users/liran.cohen/hiredscore/git/screenit
Local Packages:
{
"implementation_name": "cpython",
"implementation_version": "3.13.1",
"os_name": "posix",
"platform_machine": "arm64",
"platform_release": "23.6.0",
"platform_system": "Darwin",
"platform_version": "Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:10 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6030",
"python_full_version": "3.9.5",
"platform_python_implementation": "CPython",
"python_version": "3.9",
"sys_platform": "darwin"
}
Verbose Command Output
reproduced locally:
Additional Context
last couple of log lines:
I suspect it's related to this: #3361
also, downgraded PDM and it resolved it
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: