cargo-binstall/crates/binstalk/src
Jiahao XU 8e08c65946
Fix fallback to cargo-install: Use the default target unless user override (#1430)
* Fix fallback to `cargo-install`: Use the default target

which is guaranteed to work, instead of providing a custom `--target`
from `detect-targets`.

The one from `detect-targets` might report musl even if the `rustc`
reports gnu, since OSes like NixOS could use a custom glibc location
that prevent glibc binaries built for other OSes be run for them.

However, if we are compiling the crate and `rustc` defaults to glibc,
then it should be guaranteed to work.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Impl fn `DesiredTargets::get_initialized`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix fallback to `cargo-install`: Use user-provided override targets

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-30 00:22:21 +00:00
..
helpers Initial signing support (#1345) 2023-09-23 04:02:56 +00:00
ops Fix fallback to cargo-install: Use the default target unless user override (#1430) 2023-09-30 00:22:21 +00:00
errors.rs Initial signing support (#1345) 2023-09-23 04:02:56 +00:00
helpers.rs Refactor: Extract new crate simple-git (#1304) 2023-08-19 01:08:55 +00:00
lib.rs Refactor: Extract new crate binstalk-bins (#1294) 2023-08-15 21:48:42 +00:00
ops.rs Initial signing support (#1345) 2023-09-23 04:02:56 +00:00