-
I've noticed that poetry fails to add a relative dependency with cd /tmp
poetry new foo
poetry new bar
cd foo
poetry add ../bar This does not happen if I do exactly the same thing in a different directory, like I've tried to issue Full error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@ianliu what version of poetry are you using? I am unable to reproduce this in a clean environment. Maybe try using podman run --rm -i --entrypoint bash docker.io/python:3.10 <<EOF
set -xe
python -m pip --disable-pip-version-check install -q poetry
cd /tmp
poetry new foo
poetry new bar
pushd foo
poetry add ../bar
EOF + python -m pip --disable-pip-version-check install -q poetry
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ poetry new foo
Created package foo in foo
+ poetry new bar
Created package bar in bar
/foo /
+ pushd foo
+ poetry add ../bar
Creating virtualenv foo-b2TG5iYf-py3.10 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...
Writing lock file
Package operations: 9 installs, 0 updates, 0 removals
• Installing pyparsing (3.0.7)
• Installing attrs (21.4.0)
• Installing more-itertools (8.12.0)
• Installing packaging (21.3)
• Installing pluggy (0.13.1)
• Installing py (1.11.0)
• Installing wcwidth (0.2.5)
• Installing bar (0.1.0 /bar)
• Installing pytest (5.4.3) |
Beta Was this translation helpful? Give feedback.
@ianliu what version of poetry are you using? I am unable to reproduce this in a clean environment. Maybe try using
poetry config virtualenvs.in-project true
to rule out environment reuse.