-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
check.js: Ignore dedup warnings for bundled dependencies #3337
Conversation
I seem to have issues with continuous integration timing out on different tasks on every rebuild attempt. Is there a way to get the build to pass? |
@rufman, thanks for the fix, looks great. Also you need to actually add code to the https://github.com/yarnpkg/yarn/blob/master/__tests__/commands/check.js that would execute the fixture and verify that warning is not printed. |
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.
Test needed
Ok, so I assume I would need to publish some test package that only has one dependency and one bundled dependency? |
Probably no need to publish, you can commit a .tgz file in the test
fixtures
…On Sat, 13 May 2017 at 00:41, Stephane Rufer ***@***.***> wrote:
Ok, so I assume I would need to publish some test package that only has
one dependency and one bundled dependency.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3337 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACBdWBO3akmQGbU8ureb84bzn6dUp8pwks5r5O4sgaJpZM4NSilM>
.
|
598f1d3
to
a88901f
Compare
Any package with bundledDependencies will be added to a hash of bundled deps, which are used to check against when printing dedup warnings. This is because bundled dependencies could result in duplications which we would otherwise detect as false positives. Fixes yarnpkg#3299
@bestander I've rebased and added a test. The fixture now only contains one bundled dependency, so it should be much lighter. |
@rufman awesome work, thanks 👍 |
Any package with bundledDependencies will be added to a hash of bundled
deps, which are used to check against when printing dedup warnings.
This is because bundled dependencies could result in duplications which
we would otherwise detect as false positives.
Fixes #3299
Summary
yarn check
shouldn't return dedup warnings for any bundled dependencies, such as in the case of nyc.Test plan
A simple
package.json
with just nyc, will return 41 warnings for packages present in nyc'spackageJson.bundledDependencies
when doingyarn check
on the current master. When doingyarn check
on this commit, no warnings are returned, since the dedup warnings resulting from nyc's bundled dependencies are ignored.