• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

npm / arborist / #730

Build:
Build:
LAST BUILD BRANCH:
DEFAULT BRANCH: master
Ran 12 Feb 2021 04:39PM UTC
Jobs 1
Files 39
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#730

push

isaacs
Ensure correct flags on shrinkwrapped module deps

When running `Arborist.loadVirtual()` to read the tree from the point of
a tree that contains a shrinkwrap, we were inappropriately setting all
dep flags to `false`, as we would when reading the virtual tree in a
project root.

This patch updates loadVirtual to ensure that it always sets the proper
flags on nodes within the subtree, if the root supplied is not actually
the project root.

As a result, changes had to be made to the process that inflates
old/ancient lockfiles, and reify()'s handling of garbage data needed to
be updated as well (since the cases being tested previously would now
typically prune the invalid data out as extraneous before getting to the
reify step).  If a node DOES make it through to reify() in the
idealTree, but lacks a version or resolved field, then something is very
wrong, and so we now print a warning to the user asking them to re-try
the install or delete their lockfile (which will typically fix the
problem, since it either is a root dep that's being removed and will be
re-added properly, or a metadep problem that can only be fixed with a
full tree rebuild anyway).

PR-URL: https://github.com/npm/arborist/pull/225
Credit: @isaacs
Close: #225
Reviewed-by: @ruyadorno, @nlf

2762 of 2762 branches covered (100.0%)

Branch coverage included in aggregate %.

3773 of 3773 relevant lines covered (100.0%)

560.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #730.1 12 Feb 2021 04:39PM UTC 0
100.0
Source Files on build #730
Detailed source file information is not available for this build.
  • Back to Repo
  • 30e6d7ec on github
  • Prev Build on
  • Next Build on
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc