Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
novialriptide opened this issue Jun 14, 2024 · 1 comment
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@novialriptide
Copy link

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.

@novialriptide novialriptide added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jun 14, 2024
@dimbleby
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants