Skip to content

Use bazel-lib coreutils for hashing#939

Merged
gregmagolan merged 1 commit intomainfrom
better_hashes
Feb 26, 2026
Merged

Use bazel-lib coreutils for hashing#939
gregmagolan merged 1 commit intomainfrom
better_hashes

Conversation

@gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Feb 26, 2026

Pre-factored out of #937

@gregmagolan gregmagolan merged commit b5f5d8b into main Feb 26, 2026
2 checks passed
@gregmagolan gregmagolan deleted the better_hashes branch February 26, 2026 17:59
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89c07f4c00

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

outputs = [out],
inputs = [src],
tools = [coreutils.bin],
command = "{coreutils} hashsum --{algorithm} {src} > {out}".format(

Choose a reason for hiding this comment

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

P1 Badge Keep checksum filenames relative to artifact names

This now invokes hashsum with src.path, which causes the generated .md5/.sha1/.sha256 files to record Bazel output paths (for example bazel-out/...) rather than just the artifact basename. In this repo’s release flow, multi_platform_rust_binaries outputs are later flattened into a destination directory by bazel/release/create_release.sh, so the checksum files no longer reference files that exist in the published bundle and *sum -c verification fails for users. Preserve the previous behavior by hashing from the source directory (or otherwise emitting only the basename in checksum lines).

Useful? React with 👍 / 👎.

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.

1 participant