Bug 11029 - devtool: generated node.js recipes should use npm version unless overridden
Summary: devtool: generated node.js recipes should use npm version unless overridden
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 10653
  Show dependency tree
 
Reported: 2017-02-08 01:34 UTC by Henry Bruce
Modified: 2020-05-17 02:55 UTC (History)
6 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 2017-02-08 01:34:26 UTC
NPM modules are versioned. PV should default to this version unless overridden by devtool's --version option.

Steps to re-create
------------------
$ git clone -b morty git://git.yoctoproject.org/poky
$ git clone -b morty git://git.openembedded.org/meta-openembedded
$ source poky/oe-init-build-env
$ bitbake-layers add-layer ../meta-openembedded/meta-oe
$ devtool add 'npm://registry.npmjs.org;name=cute-files;version=1.0.2'
$ devtool build cute-files

Observe that generated recipe has PV=1.0.0 but should default to 1.0.2
Comment 1 Jean-Marie Lemetayer 2020-05-17 02:55:29 UTC
This is fixed in the master:

% devtool add 'npm://registry.npmjs.org;package=cute-files;version=1.0.2'

...

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