From f85be586297b7ff3eafa57590d7e4900b5a36d3d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Dec 2025 22:42:34 +0000 Subject: [PATCH 1/2] Initial plan From ebffffe17dcbb42d6de72dcd9f2336865701a646 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Dec 2025 22:52:15 +0000 Subject: [PATCH 2/2] docs: remove non-existent install_before_mode setting references Co-authored-by: jdx <216188+jdx@users.noreply.github.com> --- docs/cli/upgrade.md | 3 +-- man/man1/mise.1 | 3 +-- mise.usage.kdl | 2 +- src/cli/upgrade.rs | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/cli/upgrade.md b/docs/cli/upgrade.md index 13911e568c..35720ce110 100644 --- a/docs/cli/upgrade.md +++ b/docs/cli/upgrade.md @@ -53,9 +53,8 @@ Only upgrade to versions released before this date Supports absolute dates like "2024-06-01" and relative durations like "90d" or "1y". This can be useful for reproducibility or security purposes. -In "soft" mode (default), this only affects fuzzy version matches like "20" or "latest". +This only affects fuzzy version matches like "20" or "latest". Explicitly pinned versions like "22.5.0" are not filtered. -Use `install_before_mode = "hard"` setting to filter all versions strictly. ### `--raw` diff --git a/man/man1/mise.1 b/man/man1/mise.1 index 723b60c36d..b3ccf490e6 100644 --- a/man/man1/mise.1 +++ b/man/man1/mise.1 @@ -2706,9 +2706,8 @@ Only upgrade to versions released before this date Supports absolute dates like "2024\-06\-01" and relative durations like "90d" or "1y". This can be useful for reproducibility or security purposes. -In "soft" mode (default), this only affects fuzzy version matches like "20" or "latest". +This only affects fuzzy version matches like "20" or "latest". Explicitly pinned versions like "22.5.0" are not filtered. -Use `install_before_mode = "hard"` setting to filter all versions strictly. .TP \fB\-\-raw\fR Directly pipe stdin/stdout/stderr from plugin to user Sets \-\-jobs=1 diff --git a/mise.usage.kdl b/mise.usage.kdl index 6ce9a692f0..57098cada8 100644 --- a/mise.usage.kdl +++ b/mise.usage.kdl @@ -1075,7 +1075,7 @@ cmd upgrade help="Upgrades outdated tools" { } flag "-n --dry-run" help="Just print what would be done, don't actually do it" flag --before help="Only upgrade to versions released before this date" { - long_help "Only upgrade to versions released before this date\n\nSupports absolute dates like \"2024-06-01\" and relative durations like \"90d\" or \"1y\".\nThis can be useful for reproducibility or security purposes.\n\nIn \"soft\" mode (default), this only affects fuzzy version matches like \"20\" or \"latest\".\nExplicitly pinned versions like \"22.5.0\" are not filtered.\nUse `install_before_mode = \"hard\"` setting to filter all versions strictly." + long_help "Only upgrade to versions released before this date\n\nSupports absolute dates like \"2024-06-01\" and relative durations like \"90d\" or \"1y\".\nThis can be useful for reproducibility or security purposes.\n\nThis only affects fuzzy version matches like \"20\" or \"latest\".\nExplicitly pinned versions like \"22.5.0\" are not filtered." arg } flag --raw help="Directly pipe stdin/stdout/stderr from plugin to user Sets --jobs=1" diff --git a/src/cli/upgrade.rs b/src/cli/upgrade.rs index 2ae46babd6..87090e53c3 100644 --- a/src/cli/upgrade.rs +++ b/src/cli/upgrade.rs @@ -59,9 +59,8 @@ pub struct Upgrade { /// Supports absolute dates like "2024-06-01" and relative durations like "90d" or "1y". /// This can be useful for reproducibility or security purposes. /// - /// In "soft" mode (default), this only affects fuzzy version matches like "20" or "latest". + /// This only affects fuzzy version matches like "20" or "latest". /// Explicitly pinned versions like "22.5.0" are not filtered. - /// Use `install_before_mode = "hard"` setting to filter all versions strictly. #[clap(long, verbatim_doc_comment)] before: Option,