We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--skip
--exclude
1 parent ae3703c commit d52c5a6Copy full SHA for d52c5a6
src/bootstrap/src/core/config/config.rs
@@ -1314,7 +1314,20 @@ impl Config {
1314
1315
// Set flags.
1316
config.paths = std::mem::take(&mut flags.paths);
1317
- config.skip = flags.skip.into_iter().chain(flags.exclude).collect();
+ config.skip = flags
1318
+ .skip
1319
+ .into_iter()
1320
+ .chain(flags.exclude)
1321
+ .map(|p| {
1322
+ config
1323
+ .src
1324
+ .join(&p)
1325
+ .canonicalize()
1326
+ .map_err(|e| format!("path::canonicalize failed on '{}', {e}", p.display()))
1327
+ .unwrap()
1328
+ })
1329
+ .collect();
1330
+
1331
config.include_default_paths = flags.include_default_paths;
1332
config.rustc_error_format = flags.rustc_error_format;
1333
config.json_output = flags.json_output;
0 commit comments