python-poetry / python-poetry/poetry

`poetry build` follows symlink even when excluded in `pyproject.toml`

Open
#4,697 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/build-system kind/bug status/needs-consensus
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

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.

  1. obviously, because it is located on a different drive
  2. it doesn't matter in the first place, because I have excluded this symlink in my pyproject.toml file
[tool.poetry].exclude = ["REDACTED/data/"]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.