meta-virtualization/scripts
Bruce Ashfield dbf720ccb0 go-mod-fetcher: fix shallow clone handling, duplicates, and discovery workflow
oe-go-mod-fetcher.py:
  - Remove BB_GIT_SHALLOW_EXTRA_REFS generation - refs must be present in
    ALL repositories which isn't the case for module dependencies. Instead,
    use tag= parameter in individual SRC_URI entries.
  - Add tag=<tagname> to SRC_URI when ref is a tag, allowing BitBake's
    shallow clone to include the necessary tag (with BB_GIT_SHALLOW=1)
  - Remove premature _ref_points_to_commit() check that was clearing
    ref_hints before repos were fetched, preventing tag= from being added
  - Fix pseudo-version verification: only use shallow fetch for actual
    tags (refs/tags/...), not branch refs. Pseudo-versions with branch
    refs (refs/heads/...) now correctly use unshallow path to reach
    historical commits that aren't fetchable with depth=1

  oe-go-mod-fetcher-hybrid.py:
  - Fix duplicate SRC_URI entries when multiple modules share the same
    git repo/commit (e.g., errdefs and errdefs/pkg). Track added vcs_hashes
    to skip duplicates.
  - Add --discovery-cache option to calculate module sizes from discovery
    cache .zip files, enabling size recommendations during discover_and_generate

  go-mod-discovery.bbclass:
  - Add automatic hybrid mode recommendations after generate_modules,
    showing module sizes and suggested --git prefixes for conversion
  - Add GO_MOD_DISCOVERY_SKIP_VERIFY variable to skip commit verification
    on retries (useful after fixing verification issues)
  - Pass --discovery-cache to hybrid script for accurate size calculations

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2026-01-04 11:40:15 -05:00
..
data go-mod: introduce hybrid mode 2025-12-08 20:57:44 -05:00
lib/wic/plugins/source scripts: wic plugin bootimg-biosxen drop helper to reuse bootimg_pcbios 2025-07-31 13:34:50 -04:00
.gitignore scripts: add oe-go-mod-fetcher for Go module VCS resolution 2025-12-08 20:57:44 -05:00
extract-discovered-modules.py scripts: add oe-go-mod-fetcher for Go module VCS resolution 2025-12-08 20:57:44 -05:00
oe-go-mod-autogen.py scripts: adjust relocation.inc to not copy large directories 2025-04-18 13:56:50 +00:00
oe-go-mod-fetcher-hybrid.py go-mod-fetcher: fix shallow clone handling, duplicates, and discovery workflow 2026-01-04 11:40:15 -05:00
oe-go-mod-fetcher.py go-mod-fetcher: fix shallow clone handling, duplicates, and discovery workflow 2026-01-04 11:40:15 -05:00
QUICKSTART-oe-go-mod-vcs.md go-mod: introduce hybrid mode 2025-12-08 20:57:44 -05:00
README-oe-go-mod-autogen.txt oe-go-mod-autogen: clarify need to update main SRCREV 2023-11-06 16:21:12 +00:00