uv/crates/uv-distribution
Tomasz Kramkowski d20948bec2
Support creating lock files on ExFAT on MacOS (#17115)
## Summary

Fix #16859 by falling back to simply creating the lock file and then
attempting to apply permissions in cases where the temporary lockfile
cannot be renamed without overwriting (persist_noclobber) due to lack of
underlying support from the filesystem.

I've also improved the error handling.

## Test Plan

Manually on MacOS with an ExFAT partition.

~~~ bash session
$ hdiutil create -size 1g -fs ExFAT -volname EXFATDISK exfat.dmg
$ hdiutil attach exfat.dmg
$ cd /Volumes/EXFATDISK
$ uv init --bare --cache-dir build/uv/cache -v 
~~~
2025-12-15 14:05:05 +00:00
..
src Support creating lock files on ExFAT on MacOS (#17115) 2025-12-15 14:05:05 +00:00
Cargo.toml Bump version to 0.9.17 (#17058) 2025-12-09 16:36:00 -06:00
README.md Bump version to 0.9.17 (#17058) 2025-12-09 16:36:00 -06:00

README.md

uv-distribution

This crate is an internal component of uv. The Rust API exposed here is unstable and will have frequent breaking changes.

This version (0.0.7) is a component of uv 0.9.17. The source can be found here.

See uv's crate versioning policy for details on versioning.