Commit 032f978
Fall back to FilePersistence when libsecret is unavailable
On Linux without libsecret installed, PersistenceCreator.createPersistence()
fails because the keytar native module cannot load libsecret-1.so.0. The
usePlaintextFileOnLinux fallback in PersistenceCreator only handles
verification failures, not module load failures.
Catch the error in createPersistence() and fall back to FilePersistence
directly, ensuring the CLI works on Linux environments without libsecret
(CI, containers, headless servers).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ee567ba commit 032f978
2 files changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
0 commit comments