feat: with updated dagger-sdk
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -6,13 +6,13 @@ use std::{
|
||||
use eyre::Context;
|
||||
|
||||
pub struct RustSource {
|
||||
client: Arc<dagger_sdk::Query>,
|
||||
client: dagger_sdk::Query,
|
||||
|
||||
exclude: Vec<String>,
|
||||
}
|
||||
|
||||
impl RustSource {
|
||||
pub fn new(client: Arc<dagger_sdk::Query>) -> Self {
|
||||
pub fn new(client: dagger_sdk::Query) -> Self {
|
||||
Self {
|
||||
client,
|
||||
exclude: vec!["node_modules/", ".git/", "target/", ".cuddle/"]
|
||||
@@ -63,7 +63,7 @@ impl RustSource {
|
||||
|
||||
let src = self.get_src(source.clone()).await?;
|
||||
let rust_src = self.get_rust_dep_src(source).await?;
|
||||
let rust_src = rust_src.with_directory(".", skeleton_files.id().await?);
|
||||
let rust_src = rust_src.with_directory(".", skeleton_files);
|
||||
|
||||
Ok((src, rust_src))
|
||||
}
|
||||
@@ -119,7 +119,7 @@ impl RustSource {
|
||||
|
||||
let incremental_dir = self.client.directory().with_directory_opts(
|
||||
".",
|
||||
container.directory("target").id().await?,
|
||||
container.directory("target"),
|
||||
dagger_sdk::DirectoryWithDirectoryOpts {
|
||||
exclude: Some(exclude),
|
||||
include: None,
|
||||
|
Reference in New Issue
Block a user