File tree 1 file changed +0
-26
lines changed
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -94,32 +94,6 @@ export async function cargoInstall(
94
94
}
95
95
) ;
96
96
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
-
123
97
return true ;
124
98
} catch ( error ) {
125
99
const msg = unknownErrorToString ( error ) ;
You can’t perform that action at this time.
0 commit comments