File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use fun_run::CommandWithName;
44use indoc:: formatdoc;
55use libherokubuildpack:: inventory:: artifact:: Arch ;
66use shared:: { BaseImage , RubyDownloadVersion , output_tar_path, source_dir} ;
7- use std:: { error:: Error , path:: PathBuf , process:: Command } ;
7+ use std:: { error:: Error , path:: PathBuf , process:: Command , time :: Instant } ;
88
99static INNER_OUTPUT : & str = "/tmp/output" ;
1010
@@ -26,6 +26,7 @@ fn ruby_check(args: &RubyArgs) -> Result<(), Box<dyn Error>> {
2626 version,
2727 base_image,
2828 } = args;
29+ let start = Instant :: now ( ) ;
2930 let log = Print :: new ( std:: io:: stderr ( ) ) . h1 ( format ! (
3031 "Checking Ruby version ({version} linux/{arch}) for {base_image}" ,
3132 ) ) ;
@@ -63,7 +64,8 @@ fn ruby_check(args: &RubyArgs) -> Result<(), Box<dyn Error>> {
6364 print:: bullet ( "Versions" ) ;
6465 let output = print:: sub_stream_cmd ( cmd) ?;
6566
66- eprintln ! ( ) ;
67+ print:: all_done ( & Some ( start) ) ;
68+ print:: plain ( "" ) ;
6769
6870 // Print results to STDOUT for github summary
6971 println ! ( "## Ruby {version} linux/{arch} for {base_image}" ) ;
You can’t perform that action at this time.
0 commit comments