feat: with fix
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-02-11 14:13:27 +01:00
parent 5dbaf3c87f
commit 999cc9d59f
12 changed files with 34 additions and 17 deletions

View File

@@ -219,7 +219,7 @@ impl HtmxBuild {
)
.with_directory(
"/mnt/app/target/site",
builder_image.directory(format!("/mnt/src/target/site")),
builder_image.directory("/mnt/src/target/site".to_string()),
)
.with_file(
"/mnt/app/Cargo.toml",

View File

@@ -198,7 +198,7 @@ impl LeptosBuild {
)
.with_directory(
"/mnt/app/target/site",
builder_image.directory(format!("/mnt/src/target/site")),
builder_image.directory("/mnt/src/target/site".to_string()),
)
.with_file(
"/mnt/app/Cargo.toml",

View File

@@ -116,7 +116,7 @@ impl RustSource {
.map(|c| format!("**/*{}*", c.replace('-', "_")))
.collect::<Vec<_>>();
let original_crates = crates.clone();
let mut original_crates = crates.clone();
original_crates.extend(exclude);
let exclude = original_crates.iter().map(|c| c.as_str()).collect();
@@ -130,7 +130,7 @@ impl RustSource {
},
);
return Ok(incremental_dir);
Ok(incremental_dir)
}
pub async fn get_rust_skeleton_files(
@@ -191,7 +191,7 @@ impl RustSource {
}
directory = create_skeleton_files(
directory,
rust_crate.strip_prefix(source_path).unwrap_or(&rust_crate),
rust_crate.strip_prefix(source_path).unwrap_or(rust_crate),
)?;
}

View File

@@ -40,7 +40,7 @@ impl RustTest {
.with_exec(vec!["apt", "update"])
.with_exec(deps);
let target_cache = self.client.cache_volume(format!("rust_target_test",));
let target_cache = self.client.cache_volume("rust_target_test".to_string());
let build_options = vec!["cargo", "build", "--workspace"];
let rust_prebuild = rust_build_image