You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release binary archives have no version and carry 'unknown' from the target triple #649
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:
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