pdm lock --update-reuse expands the $PROJECT_ROOT variable when extra dependencies are included #2852
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
Suppose you have a local library and a main app in a monorepo as such:
The app has the library listed as a dependency with extra dependencies using the $PROJECT_ROOT variable as:
"lib[test] @ file:///${PROJECT_ROOT}/../lib"
Try calling
pdm lock
, thenpdm lock --update-reuse
for the app, observe the library in the app pdm.lock file.Actual behavior
After calling
pdm lock
, the pdm.lock file contains the following section:When calling
pdm lock --update-reuse
, the PROJECT_ROOT variable gets expanded to the actual path:Expected behavior
The pdm.lock file should be the same when calling
pdm lock
and thenpdm lock --update-reuse
immediately after, the PROJECT_ROOT variable should not get expanded.Environment Information
The text was updated successfully, but these errors were encountered: