mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-05 03:18:01 +00:00

We put a `.gitignore` with `*` at the top of our cache. When maturin was building a source distribution inside the cache, it would walk up the tree to find a gitignore, see that and ignore all python files. We now add an (empty) `.git` directory one directory below, in the root of built-wheels cache. This prevents ignore walking further up (it marks the top level a git repository). Deptry (from #2490) is a mid sized rust package with additional python packages, so instead of using it in the test i've replaced it with a small (44KB total) reproducer that uses cffi for faster building, the entire test taking <2s on my machine. Fixes #2490
1 line
8 B
Text
1 line
8 B
Text
/target
|