uv/crates/uv-cli
Andrew Gallant 9ea03ceb38
uv-cli: add worktree support to build.rs (#6825)
Previously, we were always asking Cargo to rebuild `uv-cli` if
`.git/HEAD` had changed. But in a worktree, `.git` is a file, not a
directory. And the file contains the path to git's internal worktree
state, which also has its own `HEAD` file. So in the case of a worktree,
we read the file and tell Cargo to watch the worktree-specific `HEAD`
file instead of `.git/head`.

The main thing this fixes is that, previously, in a worktree, `cargo
build` would *always* re-compile `uv` even if nothing changed.

This doesn't impact or fix anything in "typical" clones of uv though.
Only in worktrees.

Closes #6196, Closes #6197
2024-08-29 14:11:50 -04:00
..
src Add uv export --format requirements.txt (#6778) 2024-08-29 17:46:42 +00:00
build.rs uv-cli: add worktree support to build.rs (#6825) 2024-08-29 14:11:50 -04:00
Cargo.toml Generate CLI reference for documentation (#5685) 2024-08-01 16:04:16 +00:00