From f181a795a63f3fd8f052ee6bea39b7e03fc8ca0e Mon Sep 17 00:00:00 2001 From: Ricardo Torres <106406681+riffingonsoftware@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:59:22 -0600 Subject: [PATCH] refactor: flip order of mise upgrade and mise plugins update (#968) flip order of mise plugins update and mise upgrade to attempt updating plugins first. --- src/steps/os/unix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 9196dbff..22dc0a9e 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -653,12 +653,12 @@ pub fn run_mise(ctx: &ExecutionContext) -> Result<()> { print_separator("mise"); - ctx.run_type().execute(&mise).arg("upgrade").status_checked()?; - ctx.run_type() .execute(&mise) .args(["plugins", "update"]) - .status_checked() + .status_checked()?; + + ctx.run_type().execute(&mise).arg("upgrade").status_checked() } pub fn run_home_manager(ctx: &ExecutionContext) -> Result<()> {