diff --git a/Cargo.toml b/Cargo.toml index 7c2fd023..1bc93bf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ members = [ bottlerocket-settings-plugin = { path = "./bottlerocket-settings-plugin", version = "0.1" } bottlerocket-settings-derive = { path = "./bottlerocket-settings-derive", version = "0.1" } bottlerocket-settings-sdk = { path = "./bottlerocket-settings-sdk", version = "0.1" } -bottlerocket-defaults-helper = { path = "./bottlerocket-defaults-helper", version = "0.1" } +bottlerocket-defaults-helper = { path = "./bottlerocket-defaults-helper", version = "0.1.1" } bottlerocket-template-helper = { path = "./bottlerocket-template-helper", version = "0.1" } # Settings Models diff --git a/bottlerocket-defaults-helper/Cargo.toml b/bottlerocket-defaults-helper/Cargo.toml index a7f3fdce..0fe7de9b 100644 --- a/bottlerocket-defaults-helper/Cargo.toml +++ b/bottlerocket-defaults-helper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bottlerocket-defaults-helper" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "Apache-2.0 OR MIT" repository = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk" diff --git a/bottlerocket-defaults-helper/src/lib.rs b/bottlerocket-defaults-helper/src/lib.rs index 34b012ea..85062936 100644 --- a/bottlerocket-defaults-helper/src/lib.rs +++ b/bottlerocket-defaults-helper/src/lib.rs @@ -25,6 +25,9 @@ pub fn generate_defaults_toml() -> Result<()> { })?); defaults_dir.push("defaults.d"); + // Reflect that we need to rerun if any of the default settings files have changed. + println!("cargo::rerun-if-changed={}", defaults_dir.display()); + // Find TOML config files specified by the variant. let walker = WalkDir::new(&defaults_dir) .follow_links(true) // we expect users to link to shared files @@ -39,9 +42,6 @@ pub fn generate_defaults_toml() -> Result<()> { for entry in walker { let entry = entry.context(error::ListFilesSnafu { dir: &defaults_dir })?; - // Reflect that we need to rerun if any of the default settings files have changed. - println!("cargo:rerun-if-changed={}", entry.path().display()); - let data = fs::read_to_string(entry.path()).context(error::FileSnafu { op: "read", path: entry.path(),