in-toto / archivista

Archivista is a graph and storage service for in-toto attestations. Archivista enables the discovery and retrieval of attestations for software artifacts.
Apache License 2.0
62 stars 23 forks source link

fix: golangci-lint warning (v1.60.x) #361

Closed kairoaraujo closed 1 month ago

kairoaraujo commented 1 month ago

What this PR does / why we need it

Error: pkg/server/server.go:468:18: printf: non-constant format string in call to github.com/sirupsen/logrus.Errorf (govet) logrus.Errorf(fmt.Sprintf("failed to close artifact distribution file %s: %+v", distro.FileLocation, err))

Acceptance Criteria Met

Special notes for your reviewer:

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 1.62%. Comparing base (a035c62) to head (898c419). Report is 149 commits behind head on main.

Files Patch % Lines
pkg/server/server.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #361 +/- ## ========================================== - Coverage 82.40% 1.62% -80.78% ========================================== Files 10 120 +110 Lines 358 28856 +28498 ========================================== + Hits 295 470 +175 - Misses 43 28329 +28286 - Partials 20 57 +37 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.