Skip to content
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

port(turbo): Link #3500

Merged
merged 16 commits into from Jan 31, 2023
Merged

port(turbo): Link #3500

merged 16 commits into from Jan 31, 2023

Conversation

NicholasLYang
Copy link
Contributor

@NicholasLYang NicholasLYang commented Jan 26, 2023

Ported link. Required porting more APIClient functionality

@vercel
Copy link

vercel bot commented Jan 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-cra-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 31, 2023 at 6:43PM (UTC)

@vercel
Copy link

vercel bot commented Jan 26, 2023

@NicholasLYang is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added area: ci area: examples Improvements or additions to examples area: turbopack pkg: create-turbo Issues related to npx create-turbo pkg: turbo-ignore packages/turbo-ignore labels Jan 26, 2023
@NicholasLYang NicholasLYang force-pushed the nicholasyang/link branch 3 times, most recently from 34a4a34 to 7ee983d Compare January 27, 2023 20:04
@NicholasLYang NicholasLYang marked this pull request as ready for review January 27, 2023 22:18
@NicholasLYang NicholasLYang requested review from a team as code owners January 27, 2023 22:18
Copy link
Contributor

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rip out the Go impl with this PR. Would also really like to see some tests (not blocking though) since the integration test doesn't hit any of the logic inside link

crates/turborepo-lib/src/commands/mod.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/commands/mod.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/client.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/client.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/commands/login.rs Show resolved Hide resolved
crates/turborepo-lib/src/client.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/client.rs Show resolved Hide resolved
crates/turborepo-lib/src/commands/link.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/commands/link.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/cli.rs Outdated Show resolved Hide resolved
to initialize one and only one copy of each config struct.
- Removed Go code for link
- Print on error to match Go
Co-authored-by: Chris Olszewski <chrisdolszewski@gmail.com>
@@ -13,27 +13,38 @@ pub trait UserClient {
fn set_token(&mut self, token: String);
async fn get_user(&self) -> Result<UserResponse>;
async fn get_teams(&self) -> Result<TeamsResponse>;
async fn get_caching_status(&self, team_id: &str) -> Result<CachingStatus>;
async fn get_caching_status(&self, team_id: &str) -> Result<CachingStatusResponse>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it important that it returns the structure of the response and not just the data from the trait? e.g. returning CachingStatus vs CachingStatusResponse

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not particularly important. At some point we might add pagination, at which point the response type will have more importance.


if !gitignore_path.exists() {
let mut gitignore = File::create(gitignore_path)?;
#[cfg(unix)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include setting the permissions on macos as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't macOS also unix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ci area: examples Improvements or additions to examples pkg: create-turbo Issues related to npx create-turbo pkg: turbo-ignore packages/turbo-ignore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants