feat: with ignore sub source as well
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-02-11 14:11:24 +01:00
parent 0ad738700a
commit 90692d026d
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -1,6 +1,4 @@
use std::{
path::{Path, PathBuf},
};
use std::path::{Path, PathBuf};
use eyre::Context;
@ -118,7 +116,10 @@ impl RustSource {
.map(|c| format!("**/*{}*", c.replace('-', "_")))
.collect::<Vec<_>>();
let exclude = exclude.iter().map(|c| c.as_str()).collect();
let original_crates = crates.clone();
original_crates.extend(exclude);
let exclude = original_crates.iter().map(|c| c.as_str()).collect();
let incremental_dir = self.client.directory().with_directory_opts(
".",