Skip to content

cook update panics on unlisted architectures or OSes #720

Closed

Description

@drawmeanelephant

Suggested labels: bug, area: cli


Discovery audit finding L9 (low) — cooklang/cookcli @ 7c2f48b (v0.38.1), audited 2026-10-12. Code-verified only (can't execute on riscv64 here).

Summary

cook update panics on unlisted architectures/OSes.

Where

src/update.rs:115,131 — panic!("Unsupported architecture") / panic!("Unsupported operating system").

Expected

A clean Error: ... for unsupported targets.

Actual

A panic (exit 101).

Acceptance criteria (red → green)

Green when an unsupported target prints Error: ... and exits nonzero without panicking.

Verification

Code-verified only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions