diff --git a/Cargo.lock b/Cargo.lock index 05a62ce2..11ff5c03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2532,7 +2532,7 @@ dependencies = [ [[package]] name = "volo-build" -version = "0.8.1" +version = "0.8.2" dependencies = [ "anyhow", "dirs", diff --git a/volo-build/Cargo.toml b/volo-build/Cargo.toml index 9055d4b2..b9884559 100644 --- a/volo-build/Cargo.toml +++ b/volo-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "volo-build" -version = "0.8.1" +version = "0.8.2" edition.workspace = true homepage.workspace = true repository.workspace = true diff --git a/volo-build/src/workspace.rs b/volo-build/src/workspace.rs index 4732b0a5..07bc89e8 100644 --- a/volo-build/src/workspace.rs +++ b/volo-build/src/workspace.rs @@ -24,6 +24,8 @@ pub struct Service { #[derive(serde::Deserialize, serde::Serialize)] pub struct WorkspaceConfig { + #[serde(default)] + pub(crate) touch_all: bool, pub(crate) services: Vec, } @@ -56,7 +58,8 @@ where .collect::, _>>() .unwrap(); - self.pilota_builder + self.ignore_unused(!config.touch_all) + .pilota_builder .compile_with_config(services, pilota_build::Output::Workspace(work_dir)); }