Skip to content

Commit

Permalink
Disable PreRunE check for Nix when passing no-install flag on update …
Browse files Browse the repository at this point in the history
…cmd (#2554)
  • Loading branch information
burritobill authored Mar 7, 2025
1 parent 25d39f0 commit 7150481
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/boxcli/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ func updateCmd() *cobra.Command {
"If no packages are specified, all packages will be updated. " +
"Legacy non-versioned packages will be converted to @latest versioned " +
"packages resolved to their current version.",
PreRunE: ensureNixInstalled,
PreRunE: func(cmd *cobra.Command, args []string) error {
if flags.noInstall {
return nil
}
return ensureNixInstalled(cmd, args)
},
RunE: func(cmd *cobra.Command, args []string) error {
return updateCmdFunc(cmd, args, flags)
},
Expand Down

0 comments on commit 7150481

Please sign in to comment.