cargo-binstall/crates
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
..
atomic-file-install build(deps): bump the deps group with 2 updates (#1363) 2023-09-16 01:35:20 +00:00
bin release: cargo-binstall v1.4.2 (#1418) 2023-09-28 02:59:25 +00:00
binstalk Fix fallback to cargo-install: Use the default target unless user override (#1430) 2023-09-30 00:22:21 +00:00
binstalk-bins release: binstalk-bins v0.2.0 (#1389) 2023-09-25 09:01:12 +00:00
binstalk-downloader release: binstalk-downloader v0.9.1 (#1416) 2023-09-27 22:31:01 +00:00
binstalk-fetchers release: binstalk-downloader v0.9.1 (#1416) 2023-09-27 22:31:01 +00:00
binstalk-manifests release: detect-targets v0.1.12 (#1395) 2023-09-25 11:38:37 +00:00
binstalk-registry release: binstalk-downloader v0.9.1 (#1416) 2023-09-27 22:31:01 +00:00
binstalk-types release: binstalk-types v0.6.0 (#1384) 2023-09-25 02:31:02 +00:00
cargo-toml-workspace release: cargo-toml-workspace v2.0.0 (#1392) 2023-09-25 09:00:47 +00:00
detect-targets Fix fallback to cargo-install: Use the default target unless user override (#1430) 2023-09-30 00:22:21 +00:00
detect-wasi Bump tempfile from 3.4.0 to 3.5.0 (#967) 2023-03-30 02:49:38 +00:00
fs-lock Bump fs4 from 0.6.4 to 0.6.5 (#1112) 2023-06-01 04:02:01 +00:00
leon build(deps): bump the deps group with 8 updates (#1361) 2023-09-14 23:11:33 +00:00
leon-macros build(deps): bump the deps group with 2 updates (#1363) 2023-09-16 01:35:20 +00:00
normalize-path release: normalize-path v0.2.1 (#1173) 2023-06-26 08:22:39 +00:00
simple-git dep: Bump gix from v0.52.0 => v0.53.1 (#1354) 2023-09-14 13:31:00 +00:00