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

[rush] Fix 1347 by resolving paths to local projects by referring to the shrinkwrap #1367

Merged
merged 7 commits into from
Jul 11, 2019

Conversation

sachinjoseph
Copy link
Member

@sachinjoseph sachinjoseph commented Jul 10, 2019

rush link was failing on pnpm 3+ with the changes in shrinkwrap format with regard to peer dependencies. Rush now resolves paths to local projects accurately by referring to the shrinkwrap rather than figuring out the path on its own. See #1347.

@sachinjoseph sachinjoseph changed the title Fix 1347 by resolving the path to local project by referring to the shrinkwrap Fix 1347 by resolving paths to local projects by referring to the shrinkwrap Jul 10, 2019
@sachinjoseph sachinjoseph changed the title Fix 1347 by resolving paths to local projects by referring to the shrinkwrap [rush] Fix 1347 by resolving paths to local projects by referring to the shrinkwrap Jul 10, 2019
Copy link
Contributor

@halfnibble halfnibble left a comment

Choose a reason for hiding this comment

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

Looks nice to me. I'm not familiar with the problem, but the solution looks good.

apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmShrinkwrapFile.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts Outdated Show resolved Hide resolved
sachinjoseph and others added 3 commits July 9, 2019 23:35
Co-Authored-By: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
Co-Authored-By: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
@sachinjoseph sachinjoseph force-pushed the sachinjoseph/fix1347 branch from b5e2609 to b3900a9 Compare July 10, 2019 08:50
@iclanton
Copy link
Member

Make sure you test this pretty extensively.

@sachinjoseph
Copy link
Member Author

sachinjoseph commented Jul 10, 2019

Make sure you test this pretty extensively.

@iclanton I tested this on wbt, sp-client, and the repro repo in #1347, https://github.com/imodeljs/imodeljs, on pnpm 2 and pnpm 3. Do you suggest any other test repos? I am not completely familiar with the feature so it's possible that I am missing some edge cases.

@sachinjoseph sachinjoseph force-pushed the sachinjoseph/fix1347 branch from 4c0fd14 to 18c6d46 Compare July 10, 2019 23:44
@iclanton
Copy link
Member

I think you're good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants