python-poetry / python-poetry/poetry
`poetry build` follows symlink even when excluded in `pyproject.toml`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption). -
OS version and name: Ubuntu 20.04
-
Poetry version: 1.1.11
-
Link of a Gist with the contents of your pyproject.toml file
Issue
The REDACTED/data symlinks to a directory on the machine on a different drive, and poetry complains that the directory path does not start with the same thing as the current project path, when I try to build using poetry build.
- obviously, because it is located on a different drive
- it doesn't matter in the first place, because I have excluded this symlink in my
pyproject.tomlfile
[tool.poetry].exclude = ["REDACTED/data/"]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the reported Ubuntu 20.04 setup, the REDACTED/data symlink, and the [tool.poetry].exclude entry in pyproject.toml. Trace the poetry build path that processes excluded symlinks and verify that the build completes without resolving the excluded directory; add or update coverage for this case if the project’s existing tests identify a suitable location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100