You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug in selective resolution of nested packages? #4585
Current workaround is to define exact resolutions also in app package.json but this is very unsatisfying solution as there can be hundreds of apps using the same platform and duplication of those resolutions is not something what we want. I know this is not the most common way to manage deps with Yarn nor the simplest use case but I also wouldn't expect we are unique with this approach. So this report is mainly to raise discussion if this is intended behaviour.
Please mention your node.js, yarn and operating system version.
Node: 6.9.4
Yarn: 1.1.0
OSX
ps. Selective resolutions is an awesome feature and Yarn is great in general. Thanks for that.
Well actually thinking about this, I think the intended use case wasn't for selective resolutions to be respected for nested dependencies and only be used at the project level. We theoretically could do something like use the resolution of each dependency level then override them again at the project level, but this seems like adding a lot of complexity. Thoughts @cpojer @yarnpkg/core ?
Yep, resolutions are only meant to work within a project, just like yarn.lock files. I think that's the right design decision and this feature is meant to give control to the user of a project rather than the library authors.
Activity
BYK commentedon Oct 3, 2017
Hey @kaylieEB can you look at this?
kaylie-alexa commentedon Oct 5, 2017
@BYK yup, i'll work on this during the weekend.
kaylie-alexa commentedon Oct 5, 2017
Well actually thinking about this, I think the intended use case wasn't for selective resolutions to be respected for nested dependencies and only be used at the project level. We theoretically could do something like use the resolution of each dependency level then override them again at the project level, but this seems like adding a lot of complexity. Thoughts @cpojer @yarnpkg/core ?
cpojer commentedon Oct 5, 2017
Yep, resolutions are only meant to work within a project, just like yarn.lock files. I think that's the right design decision and this feature is meant to give control to the user of a project rather than the library authors.
kaylie-alexa commentedon Oct 5, 2017
thanks for clarifying @cpojer
@TomiS closing this for now as you mentioned
is the intended use of selective resolutions
TomiS commentedon Oct 9, 2017
Fair enough. We'll just need to find another approach. Thanks for clarification. :)