Skip to content

Commit

Permalink
feat: add touch_all (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
LYF1999 authored Oct 26, 2023
1 parent cec30d0 commit 9f25f62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion volo-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion volo-build/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Service>,
}

Expand Down Expand Up @@ -56,7 +58,8 @@ where
.collect::<Result<Vec<_>, _>>()
.unwrap();

self.pilota_builder
self.ignore_unused(!config.touch_all)
.pilota_builder
.compile_with_config(services, pilota_build::Output::Workspace(work_dir));
}

Expand Down

0 comments on commit 9f25f62

Please sign in to comment.