Bug 10515

Summary: devtool: if npm module version not specified, use latest
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Henry Bruce <henry.bruce>
Component: devtools / tool chainAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: bluelightning, jeanmarie.lemetayer, meta.mr.watcher, meta.watcher
Version: 2.3   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Bug Depends on:    
Bug Blocks: 10653    

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