diff --git a/src/config/config_file/mise_toml.rs b/src/config/config_file/mise_toml.rs index a002cf1aaa0..0a6e3ff59a0 100644 --- a/src/config/config_file/mise_toml.rs +++ b/src/config/config_file/mise_toml.rs @@ -188,8 +188,11 @@ pub struct MiseToml { #[serde(default)] settings: SettingsPartial, /// Marks this config as a monorepo root, enabling target path syntax for tasks - #[serde(default, alias = "experimental_monorepo_root")] + #[serde(default)] monorepo_root: Option, + /// Legacy name for monorepo_root, retained during its deprecation period + #[serde(default)] + experimental_monorepo_root: Option, /// Configuration for monorepo task discovery #[serde(default)] monorepo: Option, @@ -296,6 +299,16 @@ impl MiseToml { return Err(toml_parse_error(&err, body, path)); } }; + if let Some(legacy_monorepo_root) = rf.experimental_monorepo_root.take() { + deprecated_at!( + "2026.7.7", + "2027.12.0", + "config.experimental_monorepo_root", + "`experimental_monorepo_root` in {} is deprecated. Use `monorepo_root` instead.", + display_path(path) + ); + rf.monorepo_root.get_or_insert(legacy_monorepo_root); + } rf.context = BASE_CONTEXT.clone(); rf.context.insert( "config_root", @@ -1292,6 +1305,7 @@ impl Clone for MiseToml { dotfiles: self.dotfiles.clone(), vars: self.vars.clone(), monorepo_root: self.monorepo_root, + experimental_monorepo_root: self.experimental_monorepo_root, monorepo: self.monorepo.clone(), } }