(shortname, cddl_filename, cddl_sha256, dfns_sha256) per spec, hashed at the webref commit.
(webref_commit, specs)
| 249 | |
| 250 | |
| 251 | def pin_specs(webref_commit, specs): |
| 252 | """(shortname, cddl_filename, cddl_sha256, dfns_sha256) per spec, hashed at the webref commit.""" |
| 253 | pinned = [] |
| 254 | for shortname, cddl_filename in specs: |
| 255 | cddl_sha256 = sha256_of(get(WEBREF_RAW.format(commit=webref_commit, path=f"cddl/{cddl_filename}"))) |
| 256 | dfns_sha256 = sha256_of(get(WEBREF_RAW.format(commit=webref_commit, path=f"dfns/{shortname}.json"))) |
| 257 | pinned.append((shortname, cddl_filename, cddl_sha256, dfns_sha256)) |
| 258 | return pinned |
| 259 | |
| 260 | |
| 261 | def vendor_repo_name(namespace, filename): |