Skip to content

Commit aa3026e

Browse files
committed
Fix cargo install failes
Signed-off-by: paulober <[email protected]>
1 parent f5a54f7 commit aa3026e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/utils/rustUtil.mts

-26
Original file line numberDiff line numberDiff line change
@@ -94,32 +94,6 @@ export async function cargoInstall(
9494
}
9595
);
9696

97-
if (stderr) {
98-
// TODO: find better solution
99-
if (
100-
stderr.toLowerCase().includes("already exists") ||
101-
stderr.toLowerCase().includes("to your path") ||
102-
stderr.toLowerCase().includes("is already installed") ||
103-
stderr.toLowerCase().includes("yanked in registry")
104-
) {
105-
Logger.debug(
106-
LoggerSource.rustUtil,
107-
`Cargo package '${packageName}' is already installed ` +
108-
"or cargo bin not in PATH:",
109-
stderr
110-
);
111-
112-
return true;
113-
}
114-
115-
Logger.error(
116-
LoggerSource.rustUtil,
117-
`Failed to install cargo package '${packageName}': ${stderr}`
118-
);
119-
120-
return false;
121-
}
122-
12397
return true;
12498
} catch (error) {
12599
const msg = unknownErrorToString(error);

0 commit comments

Comments
 (0)