zipapp disregards filter when checking if target overwrites source
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Bug report
Bug description:
A check was recently added (https://github.com/python/cpython/pull/130509) to ensure that the target of a zipapp.create_archive() call does not overwrite any of its source files. However, this check does not consider the filter parameter of create_archive and this results in false positives.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
- gh-132934
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 at zipapp.create_archive and inspect how the target-overwrites-source check handles the filter parameter. Reproduce the false positive described in the report, then verify that filtered-out source files no longer trigger the check while genuine overwrites still do; linked PR gh-132934 indicates work is already underway.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 25/100