`kiri update --check` is unreachable on Linux, though update.rs is written for it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
The dispatch arm is in crates/kiri/src/main.rs, gated to macOS, and the update module is declared with the same cfg in mod update; start there. Read update.rs to see the Linux branch of run() that fetches the latest.json feed and reports the new .deb/.rpm. Compile update on Linux with the macOS-only pieces (engine_pid, restart_engine) gated out, then check that kiri update --check prints the version and download hint. Done when the command works on Linux and the macOS build is unchanged.
Written by the indexing model from the issue text.
Description
What happens
On Linux, kiri update --check does not check for updates: it falls through to docker's update and fails.
$ kiri update --check
kiri: Kiri isn't running. Open Kiri, or start it with `kiri daemon`
kiri --help advertised kiri update [--check] until now (the help is a separate report), and crates/kiri/src/main.rs has the arm only for macOS:
#[cfg(target_os = "macos")]
Some("update") if !docker::is_container_update(&args[1..]) => update::run(&args[1..]),
Why it is a bug rather than "not for Linux"
update.rs is written for a Linux build: it reads https://download.runkiri.com/latest.json under #[cfg(target_os = "linux")], and run() has the branch that tells you to fetch the new .deb/.rpm. All of that is dead code today, because the module is #[cfg(target_os = "macos")] (mod update;) and no arm reaches it.
So a Linux user has no way to ask "is there a newer Kiri?" from the CLI, though the feed and the code to answer exist.
What would fix it
Compiling update on Linux and matching it the way macOS does, with run()'s existing Linux branch (report the version, tell the user where to download). engine_pid()/restart_engine() are the macOS-only parts (SOL_LOCAL, codesign, spctl) and would need #[cfg], or run() could be split so only the version check and the message build on Linux.
Environment
Linux x86-64, main @ 7898c46, built from source.
- Dominant language
- Rust
- Stars
- 7.5k
- Forks
- 329
- Avg merge
- 15h 49m
- Merged PRs (30d)
- 241
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libracoder/kiri
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsPossibly taken @Urdemonlord claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
libracoder/kiri#669 · 3 comments ·
Maintainers usually reply within 1 day
-
Parallel image loads from docker compose build fail with "No such file or directory (os error 2)"Open
Difficulty 4/5 3-5 days Newbie friendliness 22/100
libracoder/kiri#756 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
libracoder/kiri#754 ·
Maintainers usually reply within 1 day
-
Feature: `--json` for Kiri's own commands (domains, k8s status, machine list, usb list, registry)Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
libracoder/kiri#748 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
libracoder/kiri#747 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
influxdata/influxdb#27767 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
shell-pool/shpool#463 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
oras-project/rust-oci-client-node#132 ·
Maintainers usually reply within 2 days
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)Possibly taken @zyl71 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Blockstream/lwk#213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
manuscript-lang/manuscript#6389 ·
Maintainers usually reply within 1 day