mbox series

[0/9,RFC] Go module update class

Message ID 20250529202802.1198179-1-ross.burton@arm.com
Headers show
Series Go module update class | expand

Message

Ross Burton May 29, 2025, 8:27 p.m. UTC
Hi,

Here's a not-even-nearly-finished draft of a Go module update class that
somewhat works for one recipe.  I can only take credit for moving lines
of code around: the bulk of the original code was written by Christian
Lindeberg who integrated it into recipetool.

There's a number of outstanding issues, but I thought I'd post it now
so that people can see what I have so far, and ideally improve it because
they understand Go more than I do!

Cheers,
Ross

Christian Lindeberg (1):
  recipetool: create_go: Use gomod fetcher instead of go mod vendor

Peter Kjellerstedt (2):
  recipetool: create: Support creating extra files named after the
    recipe
  recipetool: licenses.csv: Add mapping for BSD licenses

Ross Burton (6):
  scripts/recipetool/licenses.csv: add more licenses
  recipetool/create: show more of the license path when it can't be
    identified
  scripts/scriptutils: silence warning about S not existing in emptysrc
  lib/oeqa/subprocesstweak: clean up __str__()
  lib/oe/license_finder: extract license-finding code from recipetool
  Prototype go-mod-update-modules class

 .../go-mod-update-modules.bbclass             | 130 ++++
 .../files/license-hashes.csv                  |  11 +
 meta/lib/oe/license_finder.py                 | 226 ++++++
 meta/lib/oeqa/utils/subprocesstweak.py        |  13 +-
 scripts/lib/recipetool/create.py              | 229 +-----
 scripts/lib/recipetool/create_go.py           | 731 +++---------------
 scripts/lib/scriptutils.py                    |   5 +-
 7 files changed, 483 insertions(+), 862 deletions(-)
 create mode 100644 meta/classes-recipe/go-mod-update-modules.bbclass
 rename scripts/lib/recipetool/licenses.csv => meta/files/license-hashes.csv (77%)
 create mode 100644 meta/lib/oe/license_finder.py