Repository navigation
Commit 52db0e1
committed
Keep hatch unit tests off the host's uv path
utils::hatch and vendor::pypi_hatch read HATCH_ENV_TYPE_VIRTUAL_UV_PATH
from the process: a non-empty value switches every Hatch env to uv, so
the vendored-wheel and [tool.uv.sources] refusals fire with no file
setting. A developer who points Hatch at uv that way sees 18
socket-patch-core unit tests fail on a clean origin/main checkout
(`cargo test -p socket-patch-core --lib`); CI passes only because no
job sets the var.
Both reads now go through hatch::uv_path_override(). Production builds
read the process env as before; unit-test builds read only a value a
test holds with an EnvGuard (test_env::guarded_var), as go_env does
since #2057. A new test holds the var to cover the uv branch that the
unit tests never reached before, and checks a host value stays hidden.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeR2MHrmJ9Fh9wmm3X11 parent de81f1b commit 52db0e1
2 files changed
Lines changed: 54 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
604 | 623 | | |
605 | 624 | | |
606 | 625 | | |
| |||
620 | 639 | | |
621 | 640 | | |
622 | 641 | | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
| 642 | + | |
627 | 643 | | |
628 | 644 | | |
629 | 645 | | |
| |||
1722 | 1738 | | |
1723 | 1739 | | |
1724 | 1740 | | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1725 | 1774 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments