mirror of https://github.com/astral-sh/uv
This reverts commit c117acf905.
This is a minor breaking change, to be relanded in 0.7.0.
This commit is contained in:
parent
50de464425
commit
dd788a0f47
|
|
@ -3,7 +3,7 @@ use std::collections::BTreeMap;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
use tracing::error;
|
use tracing::warn;
|
||||||
|
|
||||||
use uv_normalize::{GroupName, DEV_DEPENDENCIES};
|
use uv_normalize::{GroupName, DEV_DEPENDENCIES};
|
||||||
use uv_pep508::Pep508Error;
|
use uv_pep508::Pep508Error;
|
||||||
|
|
@ -74,10 +74,9 @@ impl FlatDependencyGroups {
|
||||||
.extend(resolved.get(include_group).into_iter().flatten().cloned());
|
.extend(resolved.get(include_group).into_iter().flatten().cloned());
|
||||||
}
|
}
|
||||||
DependencyGroupSpecifier::Object(map) => {
|
DependencyGroupSpecifier::Object(map) => {
|
||||||
return Err(DependencyGroupError::DependencyObjectSpecifierNotSupported(
|
warn!(
|
||||||
name.clone(),
|
"Ignoring Dependency Object Specifier referenced by `{name}`: {map:?}"
|
||||||
map.clone(),
|
);
|
||||||
));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -155,8 +154,6 @@ pub enum DependencyGroupError {
|
||||||
DevGroupInclude(GroupName),
|
DevGroupInclude(GroupName),
|
||||||
#[error("Detected a cycle in `dependency-groups`: {0}")]
|
#[error("Detected a cycle in `dependency-groups`: {0}")]
|
||||||
DependencyGroupCycle(Cycle),
|
DependencyGroupCycle(Cycle),
|
||||||
#[error("Group `{0}` contains an unknown dependency object specifier: {1:?}")]
|
|
||||||
DependencyObjectSpecifierNotSupported(GroupName, BTreeMap<String, String>),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DependencyGroupError {
|
impl DependencyGroupError {
|
||||||
|
|
|
||||||
|
|
@ -20832,15 +20832,14 @@ fn lock_group_invalid_entry_table() -> Result<()> {
|
||||||
"#,
|
"#,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
uv_snapshot!(context.filters(), context.lock(), @r#"
|
uv_snapshot!(context.filters(), context.lock(), @r###"
|
||||||
success: false
|
success: true
|
||||||
exit_code: 1
|
exit_code: 0
|
||||||
----- stdout -----
|
----- stdout -----
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× Failed to build `project @ file://[TEMP_DIR]/`
|
Resolved 2 packages in [TIME]
|
||||||
╰─▶ Group `foo` contains an unknown dependency object specifier: {"bar": "unknown"}
|
"###);
|
||||||
"#);
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue