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-<target>.tar.gz`, got a 404, and fell back to the
QuickInstall mirror. The assets are named `fd-v<version>-<target>`.
`{ bin }` is not available in `pkg-url`, so the name is spelled out.
This commit is contained in:
Yuri Astrakhan
2026-10-05 15:34:14 -04:00
parent 9fe5cb7860
commit 3a11690fa2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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"