From 29d2a6a40263cf82ea7ffd3691eaa9c6532b48ee Mon Sep 17 00:00:00 2001 From: Michael Janelle-Montcalm Date: Mon, 11 Sep 2023 22:58:10 -0700 Subject: [PATCH] Update Cargo.toml `cargo binstall cargo-tarpaulin` currently installs from source on Windows, despite releases being available for that platform in the repository. The root cause is that the `.tar.gz` extension is explicitly specified in the `pkg-url` under `[package.metadata.binstall]`. Replacing that extension with `{ archive-suffix }` is sufficient to make this work. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9098fb6391..bfaf2bcfc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,7 +73,7 @@ lcov = "0.8.1" rusty-fork = "0.3.0" [package.metadata.binstall] -pkg-url = "{ repo }/releases/download/{ version }/cargo-tarpaulin-{ target }.tar.gz" +pkg-url = "{ repo }/releases/download/{ version }/cargo-tarpaulin-{ target }{ archive-suffix }" bin-dir = "cargo-tarpaulin{ binary-ext }" pkg-fmt = "tgz"