Commit bb6b4c8
authored
chore(tools): add checksum for socket-basics archive (#1222)
Adds a SHA-256 checksum for the socket-basics source archive in
bundle-tools.json and wires it through to the downloader so the
download now gets verified like every other bundled tool.
Previously:
- socket-basics was the only bundled tool without a checksum in
bundle-tools.json, so the download was trusted as-is.
Now:
- `bundle-tools.json` has `checksums["socket-basics-v2.0.2.tar.gz"]`.
- `downloads.mts` passes `sha256: archiveSha256` to the same
`httpDownload(...)` helper the other tools already use, and throws
if the checksum entry is missing.
Note: the archive key uses the tag-qualified filename
(`socket-basics-v<ver>.tar.gz`) to match the existing local-path
convention (`socket-basics-${version}.tar.gz`) and stay consistent
with the asset-keyed checksums elsewhere in the file.1 parent 5e24716 commit bb6b4c8
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
541 | 552 | | |
542 | 553 | | |
543 | 554 | | |
| |||
551 | 562 | | |
552 | 563 | | |
553 | 564 | | |
| 565 | + | |
554 | 566 | | |
555 | 567 | | |
556 | 568 | | |
| |||
0 commit comments