Bug 10515 - devtool: if npm module version not specified, use latest
Summary: devtool: if npm module version not specified, use latest
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 10653
  Show dependency tree
 
Reported: 2016-10-28 00:09 UTC by Henry Bruce
Modified: 2020-05-17 02:52 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Bruce 2016-10-28 00:09:06 UTC
Currently npm module version MUST be specified or 'devtool add' will fail. 
Latest version this can be awkward to find so if version is not specified, automatically find latest and use it.
Comment 1 Jean-Marie Lemetayer 2020-05-17 02:52:24 UTC
Now the 'latest' keyword can be used. A warning is displayed to inform that the build is not reproducible using this feature. But this is really handy when creating the recipe with 'devtool add'.

% devtool add 'npm://registry.npmjs.org;package=JSONStream;version=latest'

...

WARNING: The npm package JSONStream@latest is using the latest version available. This could lead to non-reproducible builds.

...


INFO: Recipe /home/jmlemetayer/development/yolo-yocto/build/workspace/recipes/jsonstream/jsonstream_1.3.5.bb has been automatically created; further editing may be required to make it fully functional