Skip to content

Commit

Permalink
fix: Redact spec channel before comparing it with repodata channel (#831
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jpcorreia99 authored Aug 27, 2024
1 parent dada9ab commit fcc1c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rattler_solve/src/resolvo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl<'a> CondaDependencyProvider<'a> {
}) {
// Check if the spec has a channel, and compare it to the repodata channel
if let Some(spec_channel) = &spec.channel {
if record.channel != spec_channel.base_url.to_string() {
if record.channel != spec_channel.canonical_name() {
tracing::debug!("Ignoring {} from {} because it was not requested from that channel.", &record.package_record.name.as_normalized(), &record.channel);
// Add record to the excluded with reason of being in the non
// requested channel.
Expand Down

0 comments on commit fcc1c13

Please sign in to comment.