diff --git a/pkgs/by-name/he/helix-db/disable-updates.patch b/pkgs/by-name/he/helix-db/disable-updates.patch index e4b26c3265d8..ddc34a2376b8 100644 --- a/pkgs/by-name/he/helix-db/disable-updates.patch +++ b/pkgs/by-name/he/helix-db/disable-updates.patch @@ -1,36 +1,44 @@ diff --git a/helix-cli/src/main.rs b/helix-cli/src/main.rs -index 18e279fd..a3ec271c 100644 --- a/helix-cli/src/main.rs +++ b/helix-cli/src/main.rs -@@ -121,13 +121,6 @@ enum Commands { - action: MetricsAction, +@@ -185,13 +185,6 @@ + action: DashboardAction, }, - /// Update to the latest version - Update { - /// Force update even if already on latest version -- #[clap(long)] +- #[arg(long)] - force: bool, - }, - /// Migrate v1 project to v2 format Migrate { /// Project directory to migrate (defaults to current directory) -@@ -253,9 +246,6 @@ async fn main() -> Result<()> { +@@ -384,9 +377,6 @@ // Send CLI install event (only first time) metrics_sender.send_cli_install_event_if_first_time(); - // Check for updates before processing commands -- update::check_for_updates().await?; +- let update_available = update::check_for_updates().await?; - let cli = Cli::parse(); + // Set verbosity level from flags +@@ -394,7 +384,7 @@ + let result = match cli.command { -@@ -280,7 +270,6 @@ async fn main() -> Result<()> { - Commands::Prune { instance, all } => commands::prune::run(instance, all).await, - Commands::Delete { instance } => commands::delete::run(instance).await, - Commands::Metrics { action } => commands::metrics::run(action).await, -- Commands::Update { force } => commands::update::run(force).await, - Commands::Migrate { - path, - queries_dir, + None => { +- display_welcome(update_available); ++ display_welcome(None); + Ok(()) + } + Some(cmd) => match cmd { +@@ -432,7 +422,6 @@ + Commands::Delete { instance } => commands::delete::run(instance).await, + Commands::Metrics { action } => commands::metrics::run(action).await, + Commands::Dashboard { action } => commands::dashboard::run(action).await, +- Commands::Update { force } => commands::update::run(force).await, + Commands::Migrate { + path, + queries_dir, diff --git a/pkgs/by-name/he/helix-db/package.nix b/pkgs/by-name/he/helix-db/package.nix index b3fd33d74aca..cf9d09237d13 100644 --- a/pkgs/by-name/he/helix-db/package.nix +++ b/pkgs/by-name/he/helix-db/package.nix @@ -10,16 +10,16 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "helix-db"; - version = "2.1.3"; + version = "2.3.3"; src = fetchFromGitHub { repo = "helix-db"; owner = "HelixDB"; tag = "v${finalAttrs.version}"; - hash = "sha256-oy17xutabfTmdkyi3Ak61f4fhd65m+Cwk+1a156K2hQ="; + hash = "sha256-Qr6rrZx9wXQm4l7HqmGz3PXRJHuV3lUZMcGMH+sOPDY="; }; - cargoHash = "sha256-KrrbQwxhqtO8ISq7WWSo67t58dOuI3gS/9nesVCIq+0="; + cargoHash = "sha256-nx4jq+2EChhtUEwCgZeqPIDidfRFZ0i0DZhkLVKapDo="; patches = [ #There are no feature yet