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

pantsbuild / pants / 6527 / 3
0%
main: 91%

Build:
Build:
LAST BUILD BRANCH: arm64_on_depot
DEFAULT BRANCH: main
Ran 30 Aug 2015 08:34PM UTC
Files 381
Run time 14s
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

30 Aug 2015 08:27PM UTC coverage: 70.201%. Remained the same
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

jsirois
Initial support for `resolve.npm`.

This is pants implementing `npm install` for node projects modeled in
pants.  The driving concern is primary control by pants of Node.js
packages via BUILD files, and this necessitates generating package.json
files under `.pants.d/` to describe dependencies (and later more) to
`npm` so it can resolve both local and remote dependencies.  A second
fallout is copying pants controlled node module sourcecode up into
`.pants.d/` since `node` has a documented behavior of resolving against
`realpath`[1], foiling any attempt to use symlinks.

The basic targets needed to support `resolve.npm` - aka `npm install`
are added along with basic tests for the functionality.

[1] https://nodejs.org/api/modules.html#modules_addenda_package_manager_tips

Testing Done:
I manually confirmed that with the NpmResolve execution of `npm dedupe`
commented out, the dedupe portion of the
`NpmResolveTest.test_resolve_simple_graph` test failed like so:
```console
E     AssertionError: Expected to find exactly 1 de-duped `typ` package, but found these:
E     	node_modules/typ/package.json
E     	node_modules/util/node_modules/typ/package.json
```

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/77852199

Bugs closed: 2073, 2087

Reviewed at https://rbcommons.com/s/twitter/r/2723/

15923 of 22682 relevant lines covered (70.2%)

0.7 hits per line

Source Files on job 6527.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6527
  • Travis Job 6527.3
  • d0a701dc on github
  • Prev Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#6521.3)
  • Next Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#6535.3)
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