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

fix(repository): honour handleTransparentWorkspaces setting in Yarn/Berry #9626

Merged

Conversation

romanofski
Copy link
Contributor

@romanofski romanofski commented Dec 17, 2024

Description

This implements a fix for #8989 to honour enableTransparentWorkspaces in a yarn config.

The patch folds the config setting into the existing link_workspace_packages npm settings as they're equivalent.

Massive Kudos to @me4502 as she helped throughout the implementation process with testing and figuring things out.

Testing Instructions

@romanofski romanofski requested a review from a team as a code owner December 17, 2024 00:47
@turbo-orchestrator turbo-orchestrator bot added the needs: triage New issues get this label. Remove it after triage label Dec 17, 2024
Copy link

vercel bot commented Dec 17, 2024

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 Dec 19, 2024 4:36pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 4:36pm

Copy link

vercel bot commented Dec 17, 2024

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

A member of the Team first needs to authorize it.

@romanofski
Copy link
Contributor Author

Would appreciate some guidance whether an additional integration test would be welcome.

Copy link
Member

@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.

Thank you so much for the PR! This looks really good. I made some minor changes/code moving in romanofski#1. Feel free to merge it in or I can do it in a follow up PR.

Only thing blocking right now is fixing the default logic when parsing an yarnrc that doesn't have an enableTransparentWorkspaces field.

Would appreciate some guidance whether an additional integration test would be welcome.

For this case I think we have enough unit test coverage that adding an integration test isn't necessary.

assert_eq!(
empty,
YarnRc {
enableTransparentWorkspaces: true
Copy link
Member

Choose a reason for hiding this comment

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

This currently fails as the serde definition requires this field to be present. To make it optional you can either:

  • change the type to Option<bool>
  • add #[serde(default = default_fn)] to the field: docs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks again @chris-olszewski - learned something. Also for the improvements. Was able to learn from them too :)

@ijjk
Copy link
Member

ijjk commented Dec 19, 2024

Allow CI Workflow Run

  • approve CI run for commit: 00f40b6

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@ijjk
Copy link
Member

ijjk commented Dec 19, 2024

Allow CI Workflow Run

  • approve CI run for commit: 00f40b6

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@chris-olszewski chris-olszewski merged commit 0cd0490 into vercel:main Dec 19, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants