Skip to content

Release binary archives have no version and carry 'unknown' from the target triple #649

Closed

Description

@LeMyst

The binary archives attached to each release are the only assets without a version in their name, and they are named after the Rust target triple, so most of them carry unknown, pc or apple:

v0.38.0 asset
cook-x86_64-unknown-linux-musl.tar.gz, cook-aarch64-pc-windows-msvc.zip, cook-x86_64-apple-darwin.tar.gz, … (11 archives) no version, target triple
cook-0.38.0-source.tar.gz versioned
cookcli-0.38.0-1.fc44.x86_64.rpm, cookcli_0.38.0-1_amd64.deb versioned (distro conventions)

Once downloaded, cook-x86_64-unknown-linux-musl.tar.gz doesn't say which release it came from, and unknown reads like a build mistake to anyone not familiar with Rust triples.

The names date back to the starship-based release workflow (2f8724b, github_build matrix name:). cook update (669899f) depends on them: it asks self_update for an asset containing cook-<triple>. That substring also matches the archive's .sha256, and the right file is picked only because GitHub lists the archive first.

Proposal: name the archives cook-<version>-<os>-<arch>[-<libc>].<ext> (e.g. cook-0.39.0-linux-x86_64-musl.tar.gz, cook-0.39.0-macos-aarch64.tar.gz, cook-0.39.0-windows-x86_64.zip), in line with cook-<version>-source.tar.gz. cook update would select the archive by its exact name and verify it against its .sha256.

Caveat: cook update in 0.38 and older only finds cook-<triple> names. Those installs would need one manual download, unless the old names are also published for a while.

Activity

  1. added
    area: ci
    on Oct 10, 2026
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

    area: cifeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions