Skip to content

CLI build broken on keyring 4.1: use_native_store moved behind the cli feature #163

Description

@BryanFRD

CI (Rust CLI) has been red on main since the Renovate bumps to keyring 4.1.0/4.1.1 (#159/#160). cargo clippy fails with:

error[E0425]: cannot find function `use_native_store` in crate `keyring`
  --> cli/src/storage.rs:14

In keyring 4.1, the crate split into two feature modes: default = ["v1"] and cli. use_native_store moved into the cli module/feature, so with default features it is no longer at the crate root. We depend on keyring = "4" (default features) and call keyring::use_native_store(true).

Fix: depend on keyring with default-features = false, features = ["cli"]. The cli use_native_store(prefer_secret_service: bool) keeps identical behavior (true = Secret Service on Linux).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions