mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 16:16:37 +00:00
Apply suggestions from code review
This commit is contained in:
parent
a236f53121
commit
d118412c2b
3 changed files with 3 additions and 4 deletions
|
@ -258,7 +258,6 @@ impl GhApiClient {
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(artifacts) => {
|
Ok(artifacts) => {
|
||||||
debug!("artifacts = {artifacts:?}");
|
|
||||||
Ok(Some(artifacts))
|
Ok(Some(artifacts))
|
||||||
}
|
}
|
||||||
Err(GhApiError::NotFound) => Ok(None),
|
Err(GhApiError::NotFound) => Ok(None),
|
||||||
|
@ -556,7 +555,7 @@ mod test {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if client.get_auth_token().is_some() {
|
if client.has_auth_token() {
|
||||||
for repo in PRIVATE_REPOS {
|
for repo in PRIVATE_REPOS {
|
||||||
let client = client.clone();
|
let client = client.clone();
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ pub(super) fn fetch_release_artifacts_restful_api(
|
||||||
client,
|
client,
|
||||||
&[
|
&[
|
||||||
"repos", owner, repo, "releases", "tags",
|
"repos", owner, repo, "releases", "tags",
|
||||||
tag, //&percent_encode_http_url_path(tag).to_compact_string(),
|
tag,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ export PATH="$CARGO_HOME/bin:$PATH"
|
||||||
|
|
||||||
# Install binaries using `--manifest-path`
|
# Install binaries using `--manifest-path`
|
||||||
# Also test default github template
|
# Also test default github template
|
||||||
"./$1" binstall --force --manifest-path "manifests/private-github-repo-test-Cargo.toml" --no-confirm cargo-binstall --strategies crate-meta-data --log-level debug
|
"./$1" binstall --force --manifest-path "manifests/private-github-repo-test-Cargo.toml" --no-confirm cargo-binstall --strategies crate-meta-data
|
||||||
|
|
||||||
# Test that the installed binaries can be run
|
# Test that the installed binaries can be run
|
||||||
cargo binstall --help >/dev/null
|
cargo binstall --help >/dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue