]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
npm: use npm_registry to cache package
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Thu, 19 May 2022 10:05:56 +0000 (12:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jun 2022 11:53:55 +0000 (12:53 +0100)
commit019b9c341d539939098962c228c1fd5c99331312
tree6e1db16ecb0b91dfce05661cf9c2602cf818f2ac
parent6cd5886ad05fee704e8a5892bd370c360c8c3b54
npm: use npm_registry to cache package

With nodejs 16, the simple 'npm cache add' approach does not work
anymore because its fetcher implementation downloads also meta
information from the registry.

We have to generate these information and add them to the cache.
There is no direct support in 'npm' for task so we have to implement
it manually.

This implementation consists of a openembedded python module (in
oe-core) and a nodejs version specific helper (in oe-meta).

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/npm.bbclass