keyring not working on ubuntu 22.04
Bug
> $ bunx linear auth login
? Enter your Linear API key › ************************************************
✗ Failed to login: No system keyring found. Use `--plaintext` to store credentials in the config file, or set `LINEAR_API_KEY`.
What should happen?
Should login without any error messages after pasting linear key.
What actually happens?
terminates login and shows error message shown above.
Same here on 24.04
thanks for the report. sorry this was botched. i don't currently have an headed ubuntu machine to figure it out on, but i would welcome a PR for this if anyone has the appetite to figure it out.
also in case it's not clear, using an env var or the --plaintext flag should be a viable workaround until this gets fixed
I was playing with this a bit. It looks like it's an issue with querying secret-tool. I suspect that it'd be sufficient to look for secret-tool on the path to determine availability. It's a small surface, so I'll see if I can get it done quickly.
The env var is reasonable and the plaintext thing does work, but I don't love storing passwords in plaintext even on my own computer.
PR is up. Looking into it more, this was broken on Linux generally and it should be fixed. Let me know what you think of the PR. I did use AI for it, but it's pretty easy to verify and I was prompting the exact solution, not just asking for an arbitrary fix.
@mezuzza awesome, thanks so much. will cut a release with this right now. note though that the npm based releases will not come out until i roll some credentials, so maybe grab a release 2.1.1 from https://github.com/schpet/linear-cli/releases once that's out (a few minutes hopefully) and if there's any issues here reopen or lmk
I have a hacky thing pointing to my local fork installed right now. I'm waiting for the rollout to hit homebrew and then I can delete my local repo
FYI i did a big rewrite, if any of you all run into issues with 3.0.0 on linux, please let me know so i can get a patch out
Experiencing this bug on Ubuntu 22.04 on first time setup with 3.0.0
linear auth login
✗ Failed to login: No system keyring found
Pass --plaintext to store the key in the credentials file, or set LINEAR_API_KEY.
Also noting that setting the key via env variable did not seem to solve the issue. Only workaround was by passing --plaintext
@bitnahian my bad :(
i'll try and spin up a headed vm and sort this out when i get time. PRs welcome of course if you have the means to sort it out.
All good. I'll see if i can repro and patch. Ty for all your efforts