Skip to content

Commit

Permalink
✨ announce where results are written (ossf#4132)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: balteraivshay <[email protected]>
  • Loading branch information
raboof authored and balteravishay committed Jun 12, 2024
1 parent 2d3b251 commit eeadb43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scorecard_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit eeadb43

Please sign in to comment.