-
Notifications
You must be signed in to change notification settings - Fork 2k
refactor(turborepo): Factored out API Client crate #4388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(turborepo): Factored out API Client crate #4388
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
10 Ignored Deployments
|
@NicholasLYang is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
let client = match timeout { | ||
Some(timeout) => reqwest::Client::builder() | ||
.timeout(std::time::Duration::from_secs(timeout)) | ||
.build()?, | ||
None => reqwest::Client::builder().build()?, | ||
}; | ||
|
||
let user_agent = format!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We make user_agent a field in APIClient so that turborepo-lib can pass the version info instead of having turborepo-api-client have a dependency on get_version. That way we don't have to share get_version between turborepo-api-client and turborepo-lib.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that is a good choice.
5b7863e
to
bd35500
Compare
3ab2d6d
to
5a5166c
Compare
a11f858
to
0787f09
Compare
…tp cache can use client without importing all of turborepo-lib
…nt workflow/codeowners files
16a692d
to
b9443e4
Compare
Description
Factored out the API client into a separate crate so that we can use the API client without importing all of turborepo-lib. Also makes turborepo-lib less monolithic.
Testing Instructions