Adopt Terrapin / msrustup for the CLI (#188732)

* cli: use terrapin for cli builds

* update rust to 1.70 to allow ado artifacts feed on windows

* apparently manaul cargo login is required

* use msrustup

* rustup is no longer user

* update to 1.73

* add rust oss install
This commit is contained in:
Connor Peet
2023-10-08 17:18:22 -07:00
committed by GitHub
parent bd41b74fd1
commit 2e37be2160
6 changed files with 48 additions and 14 deletions

View File

@@ -622,11 +622,11 @@ impl Auth {
return Ok(StoredCredential::from_response(body, provider));
}
return Err(Auth::handle_grant_error(
Err(Auth::handle_grant_error(
provider.grant_uri(),
status_code,
body,
));
))
}
/// GH doesn't have a refresh token, but does limit to the 10 most recently
@@ -772,7 +772,7 @@ impl Auth {
error!(this.log, "failed to keep token alive: {:?}", e);
return Err(e.into());
}
Err(e) if matches!(e, AnyError::RefreshTokenNotAvailableError(_)) => {
Err(AnyError::RefreshTokenNotAvailableError(_)) => {
return Ok(());
}
Err(e) => {