From: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: "Neil Horman" <nhorman@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [poky][PATCH] Fix npm to use https rather than http
Date: Fri, 26 Aug 2022 12:43:58 +0200 [thread overview]
Message-ID: <20220826124358.4118f92b@booty> (raw)
In-Reply-To: <20220825204250.3241214-1-nhorman@gmail.com>
Hello Neil,
thank you for your patch.
On Thu, 25 Aug 2022 16:42:50 -0400
"Neil Horman" <nhorman@gmail.com> wrote:
> Hit this error while building nlf-native recently:
> {
> "error": {
> "summary": "URI malformed",
> "detail": ""
> }
> }
>
> Some poking about led me to discover that:
> 1) The npm.py tool replaces npm:// with http://, not https://
> 2) Some versions of the npm tool don't handle 301 redirects properly,
> choosing to display the above error instead when using the default
> nodejs registry
>
> It would be good to go fix npm to handle the redirect properly, but it
> seems like it would also be good to assume secure http when contacting a
> registry, hence, this patch
>
> Signed-off-by: Neil Horman <nhorman@gmail.com>
> ---
> bitbake/lib/bb/fetch2/npm.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
Apparently you prepared this patch within the poky git repository. You
shouldn't do that, poky is an integration layer and should not be used
for bitbake development.
Since you want to patch bitbake, you should:
- clone the bitbake repository
- make your commit there
- send it to the bitbake mailing list.
Look at the README.md in the poky root directory for more info.
Thanks!
Best regards,
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2022-08-26 10:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 20:42 [poky][PATCH] Fix npm to use https rather than http Neil Horman
2022-08-26 10:43 ` Luca Ceresoli [this message]
2022-08-26 11:57 ` [OE-core] " Ross Burton
2022-08-26 12:21 ` Neil Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220826124358.4118f92b@booty \
--to=luca.ceresoli@bootlin.com \
--cc=nhorman@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox