Skip to content

Enable checksum verification in the generated installer script#18625

Merged
zsol merged 3 commits intomainfrom
zsol/installer-checksum
Mar 23, 2026
Merged

Enable checksum verification in the generated installer script#18625
zsol merged 3 commits intomainfrom
zsol/installer-checksum

Conversation

@zsol
Copy link
Member

@zsol zsol commented Mar 21, 2026

The idea is to generate a local dist manifest for the built artifacts, and then pass that into the global artifact builder. cargo-dist will pick up the manifest and merge it into the final manifest, and then embed the checksums into the installer scripts.

This should partially resolve #13074, but Windows installers are still missing the checksum.

Test plan

Run the release workflow in dry-run mode on this branch: https://github.com/astral-sh/uv/actions/runs/23388294448

Then inspect the generated .sh scripts and observe the embedded checksums.

@zsol zsol temporarily deployed to uv-test-publish March 21, 2026 12:26 — with GitHub Actions Inactive
@zsol zsol temporarily deployed to uv-test-publish March 21, 2026 20:41 — with GitHub Actions Inactive
@zsol zsol marked this pull request as ready for review March 23, 2026 10:42
@zsol zsol force-pushed the zsol/installer-checksum branch from f952c56 to 2e2691f Compare March 23, 2026 10:47
@konstin konstin requested a review from Gankra March 23, 2026 10:52
@zsol zsol temporarily deployed to uv-test-publish March 23, 2026 10:52 — with GitHub Actions Inactive
Copy link
Contributor

@Gankra Gankra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This took me a while to properly get why we need to do this at all, but now it all makes sense (regrettably). Because we're doing fully custom builds, we're also taking over all the hashing, so dist has no idea what's going on.

@zsol
Copy link
Member Author

zsol commented Mar 23, 2026

Yes, sorry I should've explained the problem in the PR description not just the solution :)

@zsol zsol merged commit 2175e2f into main Mar 23, 2026
71 checks passed
@zsol zsol deleted the zsol/installer-checksum branch March 23, 2026 17:57
zanieb added a commit that referenced this pull request Mar 24, 2026
…18686)

This looks omitted from #18228 and I
noticed a warning from the new release step from
#18625
konstin pushed a commit that referenced this pull request Mar 24, 2026
…18686)

This looks omitted from #18228 and I
noticed a warning from the new release step from
#18625
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify checksum in installer script

2 participants