mirror of https://github.com/helm/helm
A stat error other than 'not exist' (e.g. a permission problem) meant the file may well be present, but defaultKeyring() skipped past it: an unreadable pubring.gpg silently lost precedence to pubring.kbx, and the surfaced error could point at the wrong file. Treat only fs.ErrNotExist as absence — for any other stat error return that path unchanged so the real error surfaces when the keyring is opened. Suggested by the Copilot review on #32281. Signed-off-by: Ruslan Shaydullin <shaydullin.r.d@outlook.com>pull/32281/head
parent
924783003e
commit
276fea0121
Loading…
Reference in new issue