-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
5 changed files
with
79 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ unset CARGO_INSTALL_ROOT | |
# to find versions matching <= 1.3.3 | ||
# - `cargo-quickinstall` would test `fetch_crate_cratesio_version_matched` ability | ||
# to find latest stable version. | ||
crates="b3sum@<=1.3.3 [email protected] [email protected] [email protected] [email protected] [email protected] cargo-quickinstall [email protected]" | ||
# - `git-mob-tool tests the using of using a binary name (`git-mob`) different | ||
# from the package name. | ||
crates="b3sum@<=1.3.3 [email protected] [email protected] [email protected] [email protected] [email protected] cargo-quickinstall [email protected] [email protected]" | ||
|
||
CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home') | ||
export CARGO_HOME | ||
|
@@ -59,3 +61,8 @@ jj_version="$(jj --version)" | |
echo "$jj_version" | ||
|
||
[ "$jj_version" = "jj 0.18.0-9fb5307b7886e390c02817af7c31b403f0279144" ] | ||
|
||
git_mob_version="$(git-mob --version)" | ||
echo "$git_mob_version" | ||
|
||
[ "$git_mob_version" = "git-mob-tool 1.6.1" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[toolchain] | ||
channel = "stable" | ||
profile = "minimal" | ||
components = ["rustfmt", "clippy"] |