All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fetch: package identity of crate, gomod and npm URLs
@ 2026-11-18  9:28 Stefano Tondo
  2026-11-18  9:28 ` [PATCH 1/2] fetch: Add package_identity() to the fetchers Stefano Tondo
  2026-11-18  9:28 ` [PATCH 2/2] fetch: Return the package identity of crate, gomod and npm URLs Stefano Tondo
  0 siblings, 2 replies; 3+ messages in thread
From: Stefano Tondo @ 2026-11-18  9:28 UTC (permalink / raw)
  To: bitbake-devel
  Cc: Joshua Watt, Alexander Kanavin, Stefan Herbrechtsmeier,
	Stefano Tondo

Hi,

This series adds the fetcher API from the RFC "spdx30: name, version
and purl for dependency downloads" [1]. Richard asked for a fetcher
API that returns structured data with the purl, so that OE-Core does
not read fetcher internals.

Patch 1 adds FetchMethod.package_identity(). It returns the name, the
version and the purl of the downloaded package, or None. It uses only
the URL and the datastore, so it works before the fetch and without
network access.

Patch 2 implements it for the crate, gomod, gomodgit and npm fetchers,
with unit tests.

The RFC also covered the downloads that gitsm and npmsw add by
themselves. That part is not in this series. Richard and Alexander
prefer to list those downloads in SRC_URI. I will send that change
for npm in a separate series.

An OE-Core series that uses the API follows on the OE-Core list.

[1] https://lore.kernel.org/openembedded-core/20261105122145.543282-1-stondo@gmail.com/

Stefano Tondo (2):
  fetch: Add package_identity() to the fetchers
  fetch: Return the package identity of crate, gomod and npm URLs

 lib/bb/fetch/__init__.py | 27 +++++++++++++++++
 lib/bb/fetch/crate.py    |  7 +++++
 lib/bb/fetch/gomod.py    | 16 ++++++++++
 lib/bb/fetch/npm.py      |  7 +++++
 lib/bb/tests/fetch.py    | 63 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 120 insertions(+)

-- 
2.56.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-18  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18  9:28 [PATCH 0/2] fetch: package identity of crate, gomod and npm URLs Stefano Tondo
2026-11-18  9:28 ` [PATCH 1/2] fetch: Add package_identity() to the fetchers Stefano Tondo
2026-11-18  9:28 ` [PATCH 2/2] fetch: Return the package identity of crate, gomod and npm URLs Stefano Tondo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.