File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -117,34 +117,6 @@ export async function cargoInstall(
117
117
}
118
118
) ;
119
119
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
-
148
120
return true ;
149
121
} catch ( error ) {
150
122
const msg = unknownErrorToString ( error ) ;
You can’t perform that action at this time.
0 commit comments