-
Notifications
You must be signed in to change notification settings - Fork 27
fix: Fix --yarn-workspace with Yarn 3. #181
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
Conversation
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.
What's the relationship with this PR here #168? We already support Yarn v3 with --yarn-berry-workspaces
|
Hmm, I didn't know what Yarn Berry was. I guess it is a little weird to have two flags instead of one... |
|
Looks like I just reimplemented that PR but in a different function. 🤦🏽 I thought Yarn Berry was some different fork of Yarn or something that we added special support for. |
|
cc/ @valerybugakov any opinions about having a separate flag for Yarn v3? |
|
@olafurpg, I don't see a reason for having a separate flag for Yarn v3 if we already have |
|
@valerybugakov I meant, should we aim to consolidate |
I see. Then yes, hiding this detail from the user would be nice 👍 |
66d5d20 to
75eb42d
Compare
|
OK, looks like we're in agreement then. I've removed the code duplication between the newly added implementation and the previously added one. |
olafurpg
left a comment
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.
LGTM 👍🏻
olafurpg
left a comment
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.
Also worth updating the readme https://github.com/sourcegraph/scip-typescript#index-a-typescript-project-using-yarn-workspaces
Fixes #180.
Test plan
Manually tested against the Sourcegraph monorepo with Yarn 3 which seems to have been made the default around Sept 1 (http://github.com/sourcegraph/sourcegraph/pull/39728). The last scip-typescript upload for sg/sg was on Sept 2 (https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph/-/code-graph/uploads?query=scip-typescript), so it seems like this job has been broken since then.