From 90692d026d0be890c06e962cab28b0ff50887399 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 11 Feb 2024 14:11:24 +0100 Subject: [PATCH] feat: with ignore sub source as well Signed-off-by: kjuulh --- crates/dagger-rust/src/source.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/dagger-rust/src/source.rs b/crates/dagger-rust/src/source.rs index bb90ee1..61937d6 100644 --- a/crates/dagger-rust/src/source.rs +++ b/crates/dagger-rust/src/source.rs @@ -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::>(); - 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( ".",