meta-virtualization/classes
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
..
cni_networking.bbclass global: overrides syntax conversion 2021-08-02 17:17:53 -04:00
container-host.bbclass containers: introduce container-host class 2023-02-17 15:21:53 -05:00
go-mod-discovery.bbclass go-mod-fetcher: fix shallow clone handling, duplicates, and discovery workflow 2026-01-04 11:40:15 -05:00
go-mod-vcs.bbclass go-mod: introduce hybrid mode 2025-12-08 20:57:44 -05:00
image-oci-sloci-image.inc oci-image: create two different tar outputs 2023-02-10 12:36:11 -05:00
image-oci-umoci.inc image-oci-unmoci: preserve file modes 2025-01-17 19:17:10 +00:00
image-oci.bbclass classes/image-oci: Map image architecture correctly 2023-11-06 16:21:12 +00:00
meta-virt-cfg.bbclass conf: defer DISTRO_FEATURE check to bbclass processing 2020-02-10 10:28:38 -05:00
meta-virt-container-cfg.bbclass conf: make container recipes parseable when virtualization is not set 2023-03-20 09:06:47 -04:00
meta-virt-depreciated-warning.bbclass classes: add depreciated warning bbclass 2024-03-15 17:17:19 +00:00
meta-virt-hosts.bbclass config: introduce hostname generation hooks 2021-12-13 15:59:35 -05:00
meta-virt-k8s-cfg.bbclass conf: defer DISTRO_FEATURE check to bbclass processing 2020-02-10 10:28:38 -05:00
meta-virt-xen-cfg.bbclass xen: apply layer settings when xen DISTRO_FEATURE is enabled 2020-07-06 16:25:55 -04:00
qemuboot-testimage-network.bbclass qemuboot: add note about virt_networking bbclass 2024-11-15 19:50:00 +00:00
qemuboot-xen-defaults.bbclass xen: Disable highmem on qemuarm 2022-06-20 12:08:37 -04:00
qemuboot-xen-dtb.bbclass Revert "xen: Disable PCI on qemuarm with Xen" 2022-06-20 12:07:45 -04:00
sanity-meta-virt.bbclass sanity-meta-virt: Watch for SanityCheck event 2017-10-12 21:59:51 -04:00
virt_networking.bbclass xen: enable networking and guest image bundling 2024-11-15 19:50:00 +00:00