doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

config.json started mutating during normal use #74

Closed srhb closed 2 years ago

srhb commented 2 years ago

This breaks on eg. home-manager and anything else where we're provisioning a declarative config which is not writable.

rbw get: failed to save config to /home/sarah/.config/rbw/config.json: Read-only file system (os error 30)

See: https://github.com/nix-community/home-manager/issues/2476

rycee commented 2 years ago

Seems like 7b95f7b9d84c44ca273c1a1ce7ab62925d4a5def contains the problematic line. Perhaps it would be possible to add a condition in the if statement to verify that the file is writable?

doy commented 2 years ago

fixed in 1.4.2