Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -90,10 +90,14 @@ impl RustSource {
|
||||
) -> eyre::Result<dagger_sdk::Directory> {
|
||||
let source = source.map(|s| s.into()).unwrap_or(PathBuf::from("."));
|
||||
|
||||
let mut excludes = self.exclude.clone();
|
||||
excludes.push("**/src".to_string());
|
||||
|
||||
let directory = self.client.host().directory_opts(
|
||||
source.display().to_string(),
|
||||
dagger_sdk::HostDirectoryOptsBuilder::default()
|
||||
.include(vec!["**/Cargo.toml", "**/Cargo.lock"])
|
||||
//.include(vec!["**/Cargo.toml", "**/Cargo.lock"])
|
||||
.exclude(excludes.iter().map(|s| s.as_str()).collect::<Vec<_>>())
|
||||
.build()?,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user