From 3a11690fa2bc01472c642041d00215c6ee42a8b5 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Mon, 5 Oct 2026 15:31:52 -0400 Subject: [PATCH] fix: point cargo-binstall at the fd release asset `{ name }` renders as the crate name, so cargo-binstall looked for `fd-find-v10.5.0-.tar.gz`, got a 404, and fell back to the QuickInstall mirror. The assets are named `fd-v-`. `{ bin }` is not available in `pkg-url`, so the name is spelled out. --- CHANGELOG.md | 1 + Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87d1f1f..258c5d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Accept `--format` templates that start with `-` when passed as a separate argument, see #2126 (@vulragrag-star) - Don't incorrectly escape newlines in error messages, see #2104 - Restore jemalloc as default allocator on supported systems +- Fix the `cargo binstall` release URL, which named the crate (`fd-find`) instead of the binary (`fd`) and fell back to a third-party mirror # 10.5.0 diff --git a/Cargo.toml b/Cargo.toml index 1b53921..106e0b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,7 +98,7 @@ base = ["use-jemalloc"] default = ["use-jemalloc", "completions"] [package.metadata.binstall] -pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.{ archive-format }" +pkg-url = "{ repo }/releases/download/v{ version }/fd-v{ version }-{ target }.{ archive-format }" bin-dir = "{ bin }-v{ version }-{ target }/{ bin }{ binary-ext }" pkg-fmt = "tgz"