()
| 355 | |
| 356 | |
| 357 | def main(): |
| 358 | webref_commit = resolve_commit_for(WEBREF_REPO, WEBREF_BRANCH) |
| 359 | bidi_commit = resolve_commit_for(BIDI_SPEC_REPO, BIDI_SPEC_BRANCH) |
| 360 | print(f"Pinning {WEBREF_REPO}@{webref_commit} and {BIDI_SPEC_REPO}@{bidi_commit} ({BIDI_SPEC_FILE})") |
| 361 | spec_html = get(BIDI_SPEC_RAW.format(commit=bidi_commit)) |
| 362 | specs = resolve_specs(webref_commit, external_spec_urls(spec_html.decode())) |
| 363 | print(f"Merged specs: {', '.join(shortname for shortname, _ in specs)}") |
| 364 | pinned = pin_specs(webref_commit, specs) |
| 365 | vendors = pin_vendors() |
| 366 | for namespace, source, branch, commit, files in vendors: |
| 367 | filenames = ", ".join(filename for filename, _ in files) |
| 368 | print(f"Vendor {namespace}: {source['repo']}@{commit} on {branch} ({filenames})") |
| 369 | |
| 370 | BZL_FILE.write_text(render(webref_commit, pinned, bidi_commit, sha256_of(spec_html), vendors)) |
| 371 | update_module(pinned, vendors) |
| 372 | print(f"Updated {BZL_FILE.relative_to(root_dir)} and {MODULE_FILE.relative_to(root_dir)}") |
| 373 | |
| 374 | |
| 375 | if __name__ == "__main__": |
no test coverage detected