cargo-binstall/e2e-tests
Tomas Olvecky dfa230f039
Use binary name when searching for artifacts (#1747)
* Use binary name when searching for artifacts

When there is a single binary declared in the manifest and
it differs from the package name, add it to the list of handles
used for pre-built artifact fetching.

* Simplify `binary_name` assignment with a `match`

* Add e2e test

* Only attempt to use the binary name with `GhCrateMeta` fetcher

* Avoid too much over-allocating.

Technically it should also check if gh-crate-meta resolver is enabled, but it is unlikely for it to be disabled and overallocating for extra n-target should be fine, it is an improvement over doubling the space allocated if the binary_name is Some.

* Fix fmt in crates/binstalk/src/ops/resolve.rs

---------

Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 04:52:37 +00:00
..
fake-cargo Migrate CI and builds to Just, add "full" builds (#660) 2023-01-08 16:27:36 +11:00
manifests Support private github repository (#1690) 2024-06-10 06:02:12 +00:00
signing Initial signing support (#1345) 2023-09-23 04:02:56 +00:00
continue-on-failure.sh feat: Impl new option --continue-on-failure (#1559) 2024-01-08 12:09:45 +00:00
git.sh feat: Support install directly from git repo (#1162) 2023-06-24 01:01:31 +00:00
live.sh Use binary name when searching for artifacts (#1747) 2024-06-14 04:52:37 +00:00
manifest-path.sh e2e-tests: Check version of installed crates (#1119) 2023-06-03 08:28:44 +00:00
no-track.sh Refactor: Extract new crate binstalk-bins (#1294) 2023-08-15 21:48:42 +00:00
other-repos.sh e2e-tests: Check version of installed crates (#1119) 2023-06-03 08:28:44 +00:00
private-github-repo.sh Support private github repository (#1690) 2024-06-10 06:02:12 +00:00
registries.sh Support --registry and more options from .cargo/config.toml (#1195) 2023-07-10 03:37:41 +00:00
self-upgrade-no-symlink.sh Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00
signing.sh Check quickinstall signatures (#1382) 2023-09-23 08:35:49 +00:00
strategies.sh e2e-tests: Check version of installed crates (#1119) 2023-06-03 08:28:44 +00:00
subcrate.sh CI: Use runner macos-14 which uses M1 machine (#1590) 2024-01-31 14:26:57 +00:00
tls.sh Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00
uninstall.sh Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00
upgrade.sh Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00
version-syntax.sh Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00