Skip to content

Commit 593806a

Browse files
committed
Fix cargo install fails
Signed-off-by: paulober <[email protected]>
1 parent 6990a4a commit 593806a

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/utils/rustUtil.mts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -117,34 +117,6 @@ export async function cargoInstall(
117117
}
118118
);
119119

120-
if (stderr) {
121-
// TODO: find better solution
122-
if (
123-
stderr.toLowerCase().includes("already exists") ||
124-
stderr.toLowerCase().includes("to your path") ||
125-
stderr.toLowerCase().includes("is already installed") ||
126-
stderr.toLowerCase().includes("yanked in registry")
127-
) {
128-
Logger.debug(
129-
LoggerSource.rustUtil,
130-
`Cargo package '${packageName}' is already installed ` +
131-
"or cargo bin not in PATH:",
132-
stderr
133-
);
134-
135-
return true;
136-
}
137-
138-
Logger.error(
139-
LoggerSource.rustUtil,
140-
`Failed to install cargo command '${command}': ${stderr}`
141-
);
142-
143-
return false;
144-
}
145-
146-
Logger.debug(LoggerSource.rustUtil, `Cargo install output: ${stdout}`);
147-
148120
return true;
149121
} catch (error) {
150122
const msg = unknownErrorToString(error);

0 commit comments

Comments
 (0)