Installing a project with a path from the parent of PROJECT_ROOT fails with KeyError. #1059
Closed
1 task done
Labels
🐛 bug
Something isn't working
I've got a series of projects in the same parent directory that seem to cause the same problem. Specifically when I'm trying to move up a directory from
PROJECT_ROOT
while keeping thepyproject.toml
file location independent.When I use
pdm add -e ./../local-dependency
the dependency is resolved to an absolute path that won't work when coworkers pull my changes.Instead I've tried
pdm add -e "file:///\${PROJECT_ROOT}/../local-dependency"
which proceeds to fail exactly like the case without the..
in this issue.It's not clear to me that this is separate issue from #721, rather than an edge case that should be handled there. I made a comment in that thread but elected to create a new issue anyway because there's enough activity on this repo that a comment would likely get lost.
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Directory:
. ├── local-dependency │ ├── __init__.py │ └── pyproject.toml └── local-dependency-2 ├── __init__.py ├── pdm.lock └── pyproject.toml
local-dependency/pyproject.toml:
local-dependency-2/pyproject.toml:
local-dependency-2/pdm.lock:
Actual behavior
pdm install
,pdm add
, similar operations fail with the following error:Expected behavior
The command should succeed and create a new environment as usual.
Environment Information
Version:
> pdm --version Python Development Master (PDM), version 1.14.1
Env:
The text was updated successfully, but these errors were encountered: