99designs / 99designs/keyring

`keyring.FileBackend` should return `ErrKeyNotFound` for `Remove()` when the key is not present

未關閉
#125 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
657
分支
155
PR 合併指標
30 天內沒有已合併 PR

描述

When using `keyring.FileBackend` and you try to remove a key that doesn't exist, it returns an `fs.ErrNotExist` instead of `ErrKeyNotFound` like other backends.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

查看 keyring 套件中的 FileBackend 實作,可能位於類似 file.go 的檔案中。將其 Remove 方法與其他後端(例如作業系統專用的後端)進行比較,以了解它們如何回傳 ErrKeyNotFound。修正需要變更找不到金鑰時回傳的錯誤,使其符合統一介面。執行現有測試,確保此變更不會破壞任何內容。

由索引模型根據 Issue 內容生成。

評估

領域
cli, security
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。