summaryrefslogtreecommitdiffstats
path: root/recipes-containers/crun/crun_git.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-03-18 17:29:30 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-03-18 17:33:43 +0000
commitd5ffe93d2b4ba8e12a2a643e00caeb3ed51ad48e (patch)
treecb8048695ea3a558f7b7ef1f97f4cfd95143413c /recipes-containers/crun/crun_git.bb
parentc5efa4ec5cfee3bc312bdd521f7d0cb4fa9efdd4 (diff)
downloadmeta-virtualization-master-next.tar.gz
oe-go-mod-fetcher: fix pseudo-version tag assignment in SRC_URImaster-next
Go's module cache .info files store Origin.Ref as the "nearest tag" used to derive pseudo-versions (e.g., v0.0.0-20190215142949-d0b11bdaac8a stores Ref: "refs/tags/v0.3.0"). This ref is NOT a tag pointing to the pseudo-version's actual commit - it's just metadata about the base version. The generator was blindly using this ref as tag=v0.3.0;shallow=1 in SRC_URI entries. BitBake resolves the tag to one specific commit, finds it doesn't match the rev= parameter, and fails with: FetchError("The revision the git tag 'v0.3.0' resolved to didn't match the SRCREV in use...") This caused multiple SRC_URI entries for the same repo (e.g., go.googlesource.com/sys) to all claim tag=v0.3.0 but with different rev= values - only one could possibly be correct. Fix by detecting pseudo-versions via parse_pseudo_version_tag() and clearing the ref_hint so these entries use nobranch=1 without a tag, falling back to full clone by commit hash. Tagged versions (real releases) correctly retain their tag= parameter for shallow clones. The docker-compose .inc files are regenerated with the fix applied. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/crun/crun_git.bb')
0 files changed, 0 insertions, 0 deletions