mbox series

[styhead,2.10,v1,0/2] NPM Fetcher Private Registry Authentication Support

Message ID 20250311122901.13820-1-eric.meyers@arthrex.com
Headers show
Series NPM Fetcher Private Registry Authentication Support | expand

Message

Eric Meyers March 11, 2025, 12:28 p.m. UTC
This patch backports support for use of an .npmrc file within the NPM fetcher
via the BB_USE_HOME_NPMRC variable (introduced on master with commit 5fa6137b6).

This commit does not introduce any regression due to "BB_USE_HOME_NPMRC" gating
the use of this functionality - since no one was using the variable before, a
majority of the code introduced in this patch will be bypassed when using the NPM
fetcher. So while this technically is "new" functionality being backported, in order
for it to be used, the user will need to "opt-in" via the use of the new bitbake
variable (thus it should be safe to backport).

If this patch is accepted, I will also submit a patch to 2.8 in order to get this
into scarthgap upstream.

Mailing List Discussions for Patch Submission on Master:
   - v1: https://lists.openembedded.org/g/bitbake-devel/topic/110839321
   - v2: https://lists.openembedded.org/g/bitbake-devel/topic/111289667
   - v3: https://lists.openembedded.org/g/bitbake-devel/topic/111395041
   - v4: https://lists.openembedded.org/g/bitbake-devel/topic/111424927
   - v5 (accepted): https://lists.openembedded.org/g/bitbake-devel/topic/111433461

Eric Meyers (2):
  fetch2/npm: Adding npmrc support for private registry authentication
  doc: bitbake-user-manual-ref-variables: document BB_USE_HOME_NPMRC

 .../bitbake-user-manual-ref-variables.rst         |  6 ++++++
 lib/bb/fetch2/npm.py                              | 15 +++++++++++++++
 2 files changed, 21 insertions(+)