Skip to content

Commit

Permalink
Update Cargo.toml
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
michaeljm authored Sep 12, 2023
1 parent f0e774a commit 29d2a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 29d2a6a

Please sign in to comment.