poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Files cannot be accessed when outside of the directory that pyproject.toml resides in

Open andrewhong04 opened this issue 1 year ago • 1 comments

Issue Kind

Change in current behaviour

Description

Hi Poetry team!

I am currently in the process of migrating an old project (from 2015) to use Poetry to manage our dependencies and build system. Here is the current repository root directory.

backend/pyproject.toml
backend/Dockerfile
frontend/Dockerfile
frontend/...
README.md
docker-compose.yml

When setting the readme value to "../README.md" in pyproject.toml, I get this error:

'/Users/novial/Documents/gitprojects/shrunk/README.md' is not in the subpath of '/Users/novial/Documents/gitprojects/shrunk/backend'

I assume this is a security implementation.

Impact

This would help others trying to setup their project using Docker.

Workarounds

I could move the README.md to the backend directory, but I don't think that's optimal.

andrewhong04 avatar Jun 14 '24 04:06 andrewhong04

previously rejected at #5960. You should move the file.

dimbleby avatar Jun 15 '24 09:06 dimbleby

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Nov 28 '24 00:11 github-actions[bot]