diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-04 22:36:12 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-08 20:57:44 -0500 |
| commit | a303bf16ffd747c50c95cbe385407ba8b0122cec (patch) | |
| tree | ddb26a7945e746ce8206fc65b0a971ed74dc812b /scripts/data | |
| parent | 9f40ce9b277a677ad3cddd8bf1c1d15fbd035251 (diff) | |
| download | meta-virtualization-a303bf16ffd747c50c95cbe385407ba8b0122cec.tar.gz | |
scripts: add oe-go-mod-fetcher for Go module VCS resolution
Add the oe-go-mod-fetcher.py tool and supporting files for resolving
Go module dependencies via git repositories instead of module proxies.
oe-go-mod-fetcher.py:
- Parses go.mod and go.sum to identify required modules
- Resolves module paths to git repositories (handles vanity URLs)
- Maps module versions to git commits
- Generates SRC_URI entries for bitbake fetcher
- Creates go-mod-git.inc and go-mod-cache.inc files
- Supports monorepo detection and nested module handling
- Caches resolution results for performance
extract-discovered-modules.py:
- Helper script to extract module information from discovery cache
- Used by go-mod-discovery.bbclass during build
Also adds .gitignore to exclude runtime caches from version control.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'scripts/data')
| -rw-r--r-- | scripts/data/manual-overrides.json | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/data/manual-overrides.json b/scripts/data/manual-overrides.json new file mode 100644 index 00000000..5657c40c --- /dev/null +++ b/scripts/data/manual-overrides.json | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | { | ||
| 2 | "_comment": "Git-tracked repository overrides for modules where automatic discovery fails.", | ||
| 3 | "_format": "module/path or module/path@version -> repository URL", | ||
| 4 | "_example": { | ||
| 5 | "example.com/broken-vanity": "https://github.com/org/actual-repo", | ||
| 6 | "example.com/versioned@v1.2.3": "https://github.com/org/specific-version-repo" | ||
| 7 | } | ||
| 8 | } | ||
