diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f4d974..6556daf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.10.1 + +#### 🚀 Updates + +- Added an `install.libc` setting, to customize the libc wording used. + ## 0.10.0 #### 💥 Breaking diff --git a/Cargo.lock b/Cargo.lock index 920f35d..b6ad2a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2443,7 +2443,7 @@ dependencies = [ [[package]] name = "schema_plugin" -version = "0.10.0" +version = "0.10.1" dependencies = [ "extism-pdk", "proto_pdk", @@ -2893,9 +2893,9 @@ dependencies = [ [[package]] name = "system_env" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c311b8fa5e987b3dab3feb589437079e94fc817157739cd572a789bcbafdfde8" +checksum = "967511d0f22b9de600ec03e25d9dacc5627f36d69e780d5d0b306903de88b714" dependencies = [ "schematic", "serde", diff --git a/Cargo.toml b/Cargo.toml index cc721ba..461069e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "schema_plugin" -version = "0.10.0" +version = "0.10.1" edition = "2021" license = "MIT" publish = false diff --git a/src/proto.rs b/src/proto.rs index a417f09..e13f00e 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -180,15 +180,11 @@ fn interpolate_tokens( // Avoid detecting musl unless requested if value.contains("{libc}") { - let libc = HostLibc::detect(env.os); + let libc = env.libc.to_string(); value = value.replace( "{libc}", - schema - .install - .libc - .get(&libc) - .unwrap_or(&format!("{:?}", &libc).to_lowercase()), + schema.install.libc.get(&env.libc).unwrap_or(&libc), ); }