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

[login sso] Ensure that the RepoConfig Directory and file exists before writting team ID and API url #823

Merged

Conversation

gaspar09
Copy link
Contributor

@gaspar09 gaspar09 commented Mar 4, 2022

Edge case on new repo when .turbo/config.json doesn't exist.
Normally the .turbo/config.json would be written on yarn turbo link.
yarn turbo link is not applicable after logging in to an --sso-team

…re writting team ID and API url

Edge case on new repo when `.turbo/config.json` doesn't exist.
Normally the `.turbo/config.json` would be written on `yarn turbo link`.
`yarn turbo link` is not applicable after logging in to an --sso-team
@vercel
Copy link

vercel bot commented Mar 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vercel/turbo-site/8komoC1A3UV4GQtvdysT69957Tzx
✅ Preview: https://turbo-site-git-gaspar-ensure-repoconfig-dir-exists-when-ca27cc.vercel.sh

@gaspar09
Copy link
Contributor Author

gaspar09 commented Mar 4, 2022

Unexpected Error:

>   Waiting for your authorization...
>>> Success! Turborepo CLI authorized for gaspar@vercel.com

Error: failed to save teamId: open .turbo/config.json: no such file or directory
Usage:
  turbo login [flags]

Flags:
  -h, --help              help for turbo
      --sso-team string   attempt to authenticate to the specified team using SSO

 ERROR  failed to save teamId: open .turbo/config.json: no such file or directory
error Command failed with exit code 1.

Screen Shot 2022-03-04 at 1 54 51 PM

@kodiakhq kodiakhq bot merged commit c57440d into main Mar 4, 2022
@kodiakhq kodiakhq bot deleted the gaspar/Ensure-RepoConfig-Dir-Exists-when-writting-sso-team branch March 4, 2022 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants