notaryproject / notation-go

A collection of libraries for supporting sign and verify OCI artifacts. Based on Notary Project specifications.
Apache License 2.0
39 stars 42 forks source link

fix: dir no longer panics when HOME and XDG_CONFIG_HOME are not set #451

Closed Two-Hearts closed 2 months ago

Two-Hearts commented 2 months ago

This PR is for release-1.2 branch only.

This PR cherry picks the fix of issue #446 from main.

The fix:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.34%. Comparing base (07b2508) to head (0e4fbf0). Report is 1 commits behind head on release-1.2.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release-1.2 #451 +/- ## =============================================== + Coverage 81.21% 81.34% +0.12% =============================================== Files 32 32 Lines 2279 2283 +4 =============================================== + Hits 1851 1857 +6 + Misses 299 298 -1 + Partials 129 128 -1 ```

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