Closed thaJeztah closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 51.46%. Comparing base (
73b9e5d
) to head (1bb9aa3
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
FWIW, we should probably consider using the PASSWORD_STORE_DIR
env-var in tests (use t.TempDir()
to create a temporary location and use that as PASSWORD_STORE_DIR
(t.SetEnv()
). That would prevent tests from interfering with other tests (or with an "actual" store on the user's machine)
But this also requires the pass-store to be initialised in that directory, so that required more work; https://github.com/docker/docker-credential-helpers/blob/73b9e5d51f8dc9f598e08a0f2171c5d5a828e76b/pass/pass.go#L107-L110
Let me bring this one in; thanks!
I saw some small bits that could use a cleanup after this; will also discuss doing a new patch release 👍
commit 2fc2313bb1a9608195bb2a7624983b52901d4c73 changed the errors returned by the pass credentials-helper to use a errCredentialsNotFound. This error string is used in the client to distinguish a "not found" error from other errors. (see client.Get).
However, there were additional second code-paths that returned a custom error, which would not be detected as a "not found" error, resulting in an error when logging out;
This patch:
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)