From 21431852b3c86151bb08440f94c71ce26926fe14 Mon Sep 17 00:00:00 2001 From: paulober <44974737+paulober@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:00:34 +0100 Subject: [PATCH] Fix cargo install fails Signed-off-by: paulober <44974737+paulober@users.noreply.github.com> --- src/utils/rustUtil.mts | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/utils/rustUtil.mts b/src/utils/rustUtil.mts index 9a053c1..823933e 100644 --- a/src/utils/rustUtil.mts +++ b/src/utils/rustUtil.mts @@ -94,32 +94,6 @@ export async function cargoInstall( } ); - if (stderr) { - // TODO: find better solution - if ( - stderr.toLowerCase().includes("already exists") || - stderr.toLowerCase().includes("to your path") || - stderr.toLowerCase().includes("is already installed") || - stderr.toLowerCase().includes("yanked in registry") - ) { - Logger.debug( - LoggerSource.rustUtil, - `Cargo package '${packageName}' is already installed ` + - "or cargo bin not in PATH:", - stderr - ); - - return true; - } - - Logger.error( - LoggerSource.rustUtil, - `Failed to install cargo package '${packageName}': ${stderr}` - ); - - return false; - } - return true; } catch (error) { const msg = unknownErrorToString(error);