## Summary Fixes a bug when there are only comments in the dependencies section. Basically, after one removes all dependencies, if there are remaining comments then the value unwrapped herec198e2233e/crates/uv-workspace/src/pyproject_mut.rs (L1309)is never properly initialized. It's initialized to `None`, herec198e2233e/crates/uv-workspace/src/pyproject_mut.rs (L1256), but doesn't get set to `Some(...)` until the first dependency herec198e2233e/crates/uv-workspace/src/pyproject_mut.rs (L1276)and since we remove them all... there are none. ## Test Plan Manually induced bug with ``` [project] name = "t1" version = "0.1.0" description = "Add your description here" readme = "README.md" requires-python = ">=3.11" dependencies = [ "duct>=0.6.4", "minilog>=2.3.1", # comment ] ``` Then running ``` $ RUST_LOG=trace RUST_BACKTRACE=full uv remove duct minilog DEBUG uv 0.5.8 DEBUG Found project root: `/home/bnorick/dev/workspace/t1` DEBUG No workspace root found, using project root thread 'main' panicked at crates/uv-workspace/src/pyproject_mut.rs:1294:73: called `Option::unwrap()` on a `None` value stack backtrace: 0: 0x5638d7bed6ba - <unknown> 1: 0x5638d783760b - <unknown> 2: 0x5638d7bae232 - <unknown> 3: 0x5638d7bf0f07 - <unknown> 4: 0x5638d7bf215c - <unknown> 5: 0x5638d7bf1972 - <unknown> 6: 0x5638d7bf1909 - <unknown> 7: 0x5638d7bf18f4 - <unknown> 8: 0x5638d75087d2 - <unknown> 9: 0x5638d750896b - <unknown> 10: 0x5638d7508d68 - <unknown> 11: 0x5638d8dcf1bb - <unknown> 12: 0x5638d76be271 - <unknown> 13: 0x5638d75ef1f9 - <unknown> 14: 0x5638d75fc3cd - <unknown> 15: 0x5638d772d9de - <unknown> 16: 0x5638d8476812 - <unknown> 17: 0x5638d83e1894 - <unknown> 18: 0x5638d84722d3 - <unknown> 19: 0x5638d83e1372 - <unknown> 20: 0x7f851cfc7d90 - <unknown> 21: 0x7f851cfc7e40 - __libc_start_main 22: 0x5638d758e992 - <unknown> 23: 0x0 - <unknown> ```
Crates
uv-bench
Functionality for benchmarking uv.
uv-cache-key
Generic functionality for caching paths, URLs, and other resources across platforms.
uv-distribution-filename
Parse built distribution (wheel) and source distribution (sdist) filenames to extract structured metadata.
uv-distribution-types
Abstractions for representing built distributions (wheels) and source distributions (sdists), and the sources from which they can be downloaded.
uv-install-wheel-rs
Install built distributions (wheels) into a virtual environment.
uv-once-map
A waitmap-like concurrent hash map for executing tasks
exactly once.
uv-pep440-rs
Utilities for interacting with Python version numbers and specifiers.
uv-pep508-rs
Utilities for parsing and evaluating dependency specifiers, previously known as PEP 508.
uv-platform-tags
Functionality for parsing and inferring Python platform tags as per PEP 425.
uv-cli
Command-line interface for the uv package manager.
uv-build-frontend
A PEP 517-compatible build frontend for uv.
uv-cache
Functionality for caching Python packages and associated metadata.
uv-client
Client for interacting with PyPI-compatible HTTP APIs.
uv-dev
Development utilities for uv.
uv-dispatch
A centralized struct for resolving and building source distributions in isolated environments.
Implements the traits defined in uv-types.
uv-distribution
Client for interacting with built distributions (wheels) and source distributions (sdists). Capable of fetching metadata, distribution contents, etc.
uv-extract
Utilities for extracting files from archives.
uv-fs
Utilities for interacting with the filesystem.
uv-git
Functionality for interacting with Git repositories.
uv-installer
Functionality for installing Python packages into a virtual environment.
uv-python
Functionality for detecting and leveraging the current Python interpreter.
uv-normalize
Normalize package and extra names as per Python specifications.
uv-requirements
Utilities for reading package requirements from pyproject.toml and requirements.txt files.
uv-resolver
Functionality for resolving Python packages and their dependencies.
uv-shell
Utilities for detecting and manipulating shell environments.
uv-types
Shared traits for uv, to avoid circular dependencies.
uv-pypi-types
General-purpose type definitions for types used in PyPI-compatible APIs.
uv-virtualenv
A venv replacement to create virtual environments in Rust.
uv-warnings
User-facing warnings for uv.
uv-workspace
Workspace abstractions for uv.
uv-requirements-txt
Functionality for parsing requirements.txt files.