astral-sh/uv · error
`--outdated` cannot be used with `--format freeze`
Error message
`--outdated` cannot be used with `--format freeze`
What it means
Error "`--outdated` cannot be used with `--format freeze`" thrown in astral-sh/uv.
Source
Thrown at crates/uv/src/commands/pip/list.rs:60
prerelease: Prerelease,
index_locations: IndexLocations,
index_strategy: IndexStrategy,
keyring_provider: KeyringProviderType,
client_builder: &BaseClientBuilder<'_>,
concurrency: Concurrency,
strict: bool,
exclude_newer: ExcludeNewer,
dependency_metadata: &DependencyMetadata,
python: Option<&str>,
system: bool,
target: Option<Target>,
prefix: Option<Prefix>,
cache: &Cache,
printer: Printer,
) -> Result<ExitStatus> {
// Disallow `--outdated` with `--format freeze`.
if outdated && matches!(format, ListFormat::Freeze) {
anyhow::bail!("`--outdated` cannot be used with `--format freeze`");
}
// Detect the current Python interpreter.
let environment = PythonEnvironment::find(
&python.map(PythonRequest::parse).unwrap_or_default(),
EnvironmentPreference::from_system_flag(system, false),
PythonPreference::default().with_system_flag(system),
cache,
)?;
// Apply any `--target` or `--prefix` directories.
let environment = if let Some(target) = target {
debug!(
"Using `--target` directory at {}",
target.root().user_display()
);
environment.with_target(target)?
} else if let Some(prefix) = prefix {View on GitHub (pinned to f1a42680ff)
When it happens
Trigger: Thrown at crates/uv/src/commands/pip/list.rs:60 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of astral-sh/uv@f1a42680ff (2026-08-16).
Data as JSON: /api/errors/436c25c24129f528.
Report an issue: GitHub.