You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Requirements files: includes of a symlinked requirements file are read from the link's target folder, not the link's #604
pip resolves a relative -r against the folder of the file as it was named. wheelgap resolves symlinks first, so it reads from the folder the link points into. When the two folders have different files, wheelgap checks other packages than pip installs:
_read_requirements() in src/wheelgap/sources.py: path = path.resolve() at the top, then path.parent / include. Other code relies on the resolved path: the seen and stack sets, needs() in the tracker's site/check/driver.py (it reads e.filename of a missing include), and _copied_file() in dockerfile.py, which refuses symlinks in a build context.
What to do
Resolve an include against the including file's folder as named (os.path.abspath, no symlink resolution), as pip does.
Keep a separate identity for the loop and "already read" checks. pip uses the abspath for that too; say in the PR which you chose and why.
--dockerfile-inputs must keep refusing symlinks in the build context. --github-annotations must annotate the file pip reads.
Check the tracker's tests/test_check_driver.py against your branch (uvx --with /path/to/wheelgap pytest tests/test_check_driver.py tests/test_check_parity.py in the tracker repo) and say in the PR whether the missing-include path still works.
Done when:
Tests in tests/test_sources.py (skipped where symlinks can't be made, as other symlink tests here are) cover: the layout above (wheelgap reads link/base.txt), a symlinked folder, a -c include, and a link whose own folder lacks the include (the error names the path pip would open).
The existing symlink tests in tests/test_dockerfile.py pass unchanged.
Assignments hold for 18 hours: open a PR (a draft is fine) by 23:14 UTC on 21 Nov to keep it. If there's no PR by then, the issue opens up again and the first PR to arrive is the one we merge.
Activity
Dikshant-Neupane commentedon Nov 21, 2026
I'd like to take this
patrickballard commentedon Nov 21, 2026
Go for it, @Dikshant-Neupane! I've assigned this to you.
Assignments hold for 18 hours: open a PR (a draft is fine) by 23:14 UTC on 21 Nov to keep it. If there's no PR by then, the issue opens up again and the first PR to arrive is the one we merge.
(Reply assisted by Claude.)