@@ -237,7 +237,7 @@ impl CommonData {
237237 // mirror config
238238 // todo: this is a duplicate in pixi and pixi-pack: do it like in `compute_s3_config`
239239 let mut mirror_config = HashMap :: new ( ) ;
240- tracing:: info !( "Using mirrors: {:?}" , config. mirror_map( ) ) ;
240+ tracing:: debug !( "Using mirrors: {:?}" , config. mirror_map( ) ) ;
241241
242242 fn ensure_trailing_slash ( url : & url:: Url ) -> url:: Url {
243243 if url. path ( ) . ends_with ( '/' ) {
@@ -449,7 +449,7 @@ pub struct BuildData {
449449 pub build_platform : Platform ,
450450 pub target_platform : Platform ,
451451 pub host_platform : Platform ,
452- pub channels : Vec < NamedChannelOrUrl > ,
452+ pub channels : Option < Vec < NamedChannelOrUrl > > ,
453453 pub variant_config : Vec < PathBuf > ,
454454 pub ignore_recipe_variants : bool ,
455455 pub render_only : bool ,
@@ -508,7 +508,7 @@ impl BuildData {
508508 host_platform : host_platform
509509 . or ( target_platform)
510510 . unwrap_or ( Platform :: current ( ) ) ,
511- channels : channels . unwrap_or ( vec ! [ NamedChannelOrUrl :: Name ( "conda-forge" . to_string ( ) ) ] ) ,
511+ channels,
512512 variant_config : variant_config. unwrap_or_default ( ) ,
513513 ignore_recipe_variants,
514514 render_only,
@@ -603,7 +603,7 @@ fn parse_key_val(s: &str) -> Result<(String, Value), Box<dyn Error + Send + Sync
603603pub struct TestOpts {
604604 /// Channels to use when testing
605605 #[ arg( short = 'c' , long = "channel" ) ]
606- pub channels : Option < Vec < String > > ,
606+ pub channels : Option < Vec < NamedChannelOrUrl > > ,
607607
608608 /// The package file to test
609609 #[ arg( short, long) ]
@@ -621,7 +621,7 @@ pub struct TestOpts {
621621#[ derive( Debug , Clone ) ]
622622#[ allow( missing_docs) ]
623623pub struct TestData {
624- pub channels : Vec < String > ,
624+ pub channels : Option < Vec < NamedChannelOrUrl > > ,
625625 pub package_file : PathBuf ,
626626 pub compression_threads : Option < u32 > ,
627627 pub common : CommonData ,
@@ -642,13 +642,13 @@ impl TestData {
642642 /// Create a new instance of `TestData`
643643 pub fn new (
644644 package_file : PathBuf ,
645- channels : Option < Vec < String > > ,
645+ channels : Option < Vec < NamedChannelOrUrl > > ,
646646 compression_threads : Option < u32 > ,
647647 common : CommonData ,
648648 ) -> Self {
649649 Self {
650650 package_file,
651- channels : channels . unwrap_or ( vec ! [ "conda-forge" . to_string ( ) ] ) ,
651+ channels,
652652 compression_threads,
653653 common,
654654 }
@@ -1202,7 +1202,7 @@ pub struct DebugData {
12021202 /// Host platform for runtime dependencies
12031203 pub host_platform : Platform ,
12041204 /// List of channels to search for dependencies
1205- pub channels : Vec < NamedChannelOrUrl > ,
1205+ pub channels : Option < Vec < NamedChannelOrUrl > > ,
12061206 /// Common configuration options
12071207 pub common : CommonData ,
12081208 /// Name of the specific output to debug (if recipe has multiple outputs)
@@ -1221,9 +1221,7 @@ impl DebugData {
12211221 host_platform : opts
12221222 . host_platform
12231223 . unwrap_or_else ( || opts. target_platform . unwrap_or ( Platform :: current ( ) ) ) ,
1224- channels : opts. channels . unwrap_or ( vec ! [
1225- NamedChannelOrUrl :: from_str( "conda-forge" ) . expect( "conda-forge is parseable" ) ,
1226- ] ) ,
1224+ channels : opts. channels ,
12271225 common : CommonData :: from_opts_and_config ( opts. common , config. unwrap_or_default ( ) ) ,
12281226 output_name : opts. output_name ,
12291227 }
0 commit comments