From 3da6db56c91033e53933000fb7f26e8e617d4b77 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 6 Jun 2024 19:42:19 +0200 Subject: [PATCH] :sparkles: announce where results are written (#4132) Before this change, when running with '-o foo' the output would end with: ``` RESULTS ------- ``` This was rather confusing. There's of course many ways to make this more clear, this commit adds a log line announcing where the output is written to: ``` RESULTS ------- Writing to foo ``` Signed-off-by: Arnout Engelen --- pkg/scorecard_result.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/scorecard_result.go b/pkg/scorecard_result.go index f2ae996c65e..27e9f0409ad 100644 --- a/pkg/scorecard_result.go +++ b/pkg/scorecard_result.go @@ -134,6 +134,7 @@ func FormatResults( if err != nil { return fmt.Errorf("unable to create output file: %w", err) } + fmt.Fprintln(os.Stderr, "Writing results to", opts.ResultsFile) defer output.Close() }