Bug 10464 - recipetool: create: shows warning when fetching npm modules
Summary: recipetool: create: shows warning when fetching npm modules
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: All Multiple
: Medium minor
Target Milestone: 2.3
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 10653
  Show dependency tree
 
Reported: 2016-10-19 20:21 UTC by Paul Eggleton
Modified: 2016-11-23 19:55 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2016-10-19 20:21:36 UTC
If you run devtool add / recipetool create on an npm module you'll get the following warnings:

----------- snip -----------
$ recipetool create "npm://registry.npmjs.org;name=cute-files;version=1.0.2"
NOTE: Fetching npm://registry.npmjs.org;name=cute-files;version=1.0.2...
WARNING: Missing shrinkwrap file in NPM_SHRINKWRAP for cute-files, this will lead to unreliable builds!
WARNING: Missing lockdown file in NPM_LOCKDOWN for cute-files, this will lead to unreproducible builds!
...
----------- snip -----------

These are entirely harmless (NPM_SHRINKWRAP and NPM_LOCKDOWN get calculated subsequently and set in the resulting recipe), and thus we should suppress them in this situation.