Repo checker: a uv.lock locked for [tool.uv] environments shows false gaps on the platforms it leaves out (paperless-ngx: 52 on Windows)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, python
Research direction
Start in check() in site/check/driver.py, in the offline lockfile branch next to the pythons_outside_lock call, and read supported-markers with tomllib from the uv.lock. Mark targets where no marker can hold as outside_environments, then reuse the existing "not locked" tile path in tileText in site/check/check-logic.mjs. Done when tests/test_check_driver.py passes for a Linux-only lock with win-amd64 excluded and a lock without the key unchanged.
Written by the indexing model from the issue text.
Description
A uv.lock made for [tool.uv] environments holds only the packages and wheels those environments need. uv writes them into the lock as supported-markers. On a platform the environments leave out, uv sync fails. The page, which runs wheelgap 0.13.0, reads the lock as if it covered every platform, and shows false gaps there.
Paste paperless-ngx/paperless-ngx. Its lock says:
supported-markers = [
"platform_machine == 'arm64' and platform_python_implementation == 'CPython' and sys_platform == 'darwin'",
"platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
"platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
]
With Python 3.13 and Windows x64 picked, driver.check() gives 3 gaps on linux-x86_64 and 52 on win-amd64: cffi, cryptography, lxml, markupsafe, numpy, pillow and more. Those six all have Windows wheels on PyPI. The lock just doesn't list them, because the project never installs on Windows, so it can't answer for Windows at all. ArchiveBox/ArchiveBox and exo-explore/exo leave out Windows the same way. In the 300-repo corpus, 5 of the 82 root uv.lock files leave out a platform the page offers.
wheelgap after 0.13.0 refuses such a target (wheelgap/wheelgap#654). With the default targets it leaves those platforms out and says why. Once the pin moves (#208), the page would get that refusal for the whole check whenever a left-out platform is picked. So it needs its own handling either way.
Where
check()insite/check/driver.py, in the branch for lockfiles read offline.outside = set(pythons_outside_lock(source, targets))does the same job for Pythons the lock'srequires-pythonleaves out: those cells don't count, and the result'soutside_locknames them.tileText(c, outside)insite/check/check-logic.mjsandrenderTargets()insite/check/check.mjsshow such a tile as "–" "not locked".wheelgap.check.marker_holds(marker, target)is in 0.13.0, and an unknown marker counts as holding. On wheelgap main,check.lock_environment_targets()does the whole job.
What to do
- For a
uv.lockread offline, readsupported-markersfrom the file (tomllib). 0.13.0 doesn't keep it. A target on which none of the markers can hold is left out: none of its cells count, and the result lists its label in a newoutside_environments. - Its tile shows "–" with "not locked", as for
outside_lock. - One alert:
uv.lock is locked for [tool.uv] environments that leave out Windows x64, so uv sync fails there. Add it to environments and run uv lock to check it. - A lock without
supported-markersis checked exactly as today. - Add a comment: once the pin is 0.14.0 or later, use
check.lock_environment_targets().
Done when:
-
tests/test_check_driver.py: a smalluv.lockwith Linux-onlysupported-markers, checked for linux-x86_64 and win-amd64. win-amd64 is inoutside_environments, its cells count nothing, and linux-x86_64 is unchanged. A lock without the key gives the same result as before. -
tests/site/check-logic.test.mjsorcheck-page.test.mjs: the tile and the alert. - In the PR:
paperless-ngx/paperless-ngxwith Windows x64 picked, before and after, as screenshots.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 37m
- Merged PRs (30d)
- 134
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from wheelgap/tracker
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 42/100
Maintainers usually reply within 1 day
All issues in wheelgap/tracker
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
data good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 92/100
pacocartones/free-llm-api-hub#747 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#481 ·
Maintainers usually reply within 7 days
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day