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/.gitignore | |
| 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/.gitignore')
| -rw-r--r-- | scripts/.gitignore | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 00000000..57fdcfc0 --- /dev/null +++ b/scripts/.gitignore | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Runtime caches generated by oe-go-mod-fetcher.py | ||
| 2 | data/module-cache.json | ||
| 3 | data/vanity-url-cache.json | ||
| 4 | data/ls-remote-cache.json | ||
| 5 | data/verify-cache.json | ||
| 6 | data/.verify/ | ||
| 7 | |||
| 8 | # Python bytecode | ||
| 9 | __pycache__/ | ||
| 10 | *.pyc | ||
| 11 | |||
| 12 | # Editor/IDE files | ||
| 13 | *.swp | ||
| 14 | *~ | ||
| 15 | .cache/ | ||
