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

feat(login): add --manual flag #9998

Merged
merged 13 commits into from
Feb 19, 2025
Merged

Conversation

chris-olszewski
Copy link
Member

@chris-olszewski chris-olszewski commented Feb 18, 2025

Description

Currently setting up a custom remote cache requires editing multiple files and setting the TURBO_TOKEN env var for every command you run that requires the remote cache. Introducing turbo login --manual which will edit all configuration files required to allow for turbo to use the remote cache without setting any env vars or editing any files.

This command is equivalent to turbo login and turbo link when using the Vercel remote cache.

This PR also fixes a bug in our rewrite_json module where we didn't correctly rewrite paths if they had more than one element.

I suggest reviewing this PR commit by commit.

Testing Instructions

Added unit tests, but going through the flow is the best way to test this.

Screen.Recording.2025-02-18.at.12.20.48.PM.mov

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link

vercel bot commented Feb 18, 2025

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

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm
examples-gatsby-web 🛑 Canceled (Inspect) Feb 19, 2025 2:04pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm
examples-native-web 🛑 Canceled (Inspect) Feb 19, 2025 2:04pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 2:04pm


The team id of the Remote Cache team.
Value will be passed as `teamId` in the querystring for all Remote Cache HTTP calls.
Must start with `team_` or it will not be used.
Copy link
Contributor

@anthonyshew anthonyshew Feb 19, 2025

Choose a reason for hiding this comment

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

Future task: Should we warn on this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Or we remove this behavior? I do not know the reasoning behind it 🤷

Copy link
Contributor

Choose a reason for hiding this comment

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

Possibly. I think I'd err on caution for now. I don't like changes for auth things without 100% confidence, and we're already making changes. Unless you're 100% on it, I'd just kick the can down the road.

chris-olszewski and others added 4 commits February 19, 2025 09:03
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants