File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,34 +344,9 @@ pub fn check_foundry_deps() -> Result<Vec<Dependency>> {
344344 if !is_command_installed ( "anvil" ) ? {
345345 return Ok ( vec ! [ Dependency :: Foundry ] ) ;
346346 }
347- // let (_, installed_datetime) = get_foundry_version()?;
348347 Ok ( vec ! [ ] )
349348}
350349
351- #[ instrument( level = "trace" , skip_all) ]
352- fn get_foundry_version ( ) -> Result < ( String , String ) > {
353- let output = run_command ( Command :: new ( "bash" ) . args ( & [ "-c" , "anvil --version" ] ) , false ) ?;
354- let Some ( output) = output else {
355- return Err ( eyre ! (
356- "failed to fetch foundry version: anvil --version failed"
357- ) ) ;
358- } ;
359- let output: Vec < & str > = output. 0 . split ( '(' ) . nth ( 1 ) . unwrap ( ) . split ( ' ' ) . collect ( ) ;
360- if output. len ( ) != 2 {
361- return Err ( eyre ! (
362- "failed to fetch foundry version: unexpected output: {output:?}"
363- ) ) ;
364- }
365- Ok ( (
366- output[ 0 ] . trim ( ) . to_string ( ) ,
367- output[ 1 ]
368- . trim ( )
369- . strip_suffix ( ')' )
370- . unwrap_or_else ( || output[ 1 ] )
371- . to_string ( ) ,
372- ) )
373- }
374-
375350/// install forge+anvil+others, could be separated into binary extractions from github releases.
376351#[ instrument( level = "trace" , skip_all) ]
377352fn install_foundry ( verbose : bool ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments