Regression: ${PROJECT_ROOT} for relative paths to local packages not working in pdm > 2.2.1 #1658
Closed
1 task done
Labels
🐛 bug
Something isn't working
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Start with minimal pyproject.toml:
Add local package dependency (
mypkg/
contains a minimal setup.py-based package).Using pdm 2.2.1, the resulting pyproject.toml is:
Upgrade pdm to anything > 2.2.1 and attempt to use that
pyproject.toml
.Actual behavior
Attempts to use that
pyproject.toml
with any later version of pdm (I've tried 2.4.2 and 2.3.0) fail (withFileNotFoundError: [Errno 2] No such file or directory: '/${PROJECT_ROOT}/mypkg
.E.g.
Expected behavior
Continuing with pdm 2.2.1, things appear to work correctly, e.g.
Notes
If, in step 2 of "Step to Reproduce", one uses pdm 2.4.2 to add the local package (
pdm add ./mypkg
), the resultingpyproject.toml
includes the absolute path to the local package, rather than using${PROJECT_ROOT}
:This is less than ideal, since it eliminates the ability to relocate the project (e.g. by cloning the containing git repo to another directory.)
Environment Information
The text was updated successfully, but these errors were encountered: