diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-04 22:19:59 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-08 20:57:44 -0500 |
| commit | 9f40ce9b277a677ad3cddd8bf1c1d15fbd035251 (patch) | |
| tree | 109cdd94bb9fdbb5437240cc15fa9bc5371f0874 /recipes-devtools/python | |
| parent | 44c4e44db7300f241e6740b389489e84ef7c1f65 (diff) | |
| download | meta-virtualization-9f40ce9b277a677ad3cddd8bf1c1d15fbd035251.tar.gz | |
classes: add go-mod-vcs and go-mod-discovery for Go module builds
Add two new bbclass files that enable building Go applications using
git-based module resolution instead of network proxy fetches:
go-mod-vcs.bbclass:
- Provides do_create_module_cache task to build GOMODCACHE from git sources
- Implements pure Python h1: hash calculation with go-dirhash-native fallback
- Creates properly structured module zip files and hash files
- Handles module path transformations and case encoding
go-mod-discovery.bbclass:
- Runs module discovery using the oe-go-mod-fetcher tool
- Generates go-mod-git.inc and go-mod-cache.inc files
- Supports bootstrap mode for initial recipe conversion
Together these classes enable fully offline, reproducible Go builds
by fetching module sources via git and constructing the module cache
during the build rather than relying on network access to module proxies.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-devtools/python')
0 files changed, 0 insertions, 0 deletions
