Skip to content

chore(diff-build): download bazel-diff jar directly instead of via Bazel dep#1116

Merged
aaylward merged 1 commit intomainfrom
diff-build
Mar 7, 2026
Merged

chore(diff-build): download bazel-diff jar directly instead of via Bazel dep#1116
aaylward merged 1 commit intomainfrom
diff-build

Conversation

@aaylward
Copy link
Copy Markdown
Collaborator

@aaylward aaylward commented Mar 7, 2026

Summary

scripts/diff-build was calling bazel build @bazel-diff//jar to fetch the bazel-diff jar, which forces Bazel's full analysis phase just to download a single file. This replaces that with a direct curl download, cutting out the Bazel overhead entirely.

What Changed

  • Removed http_jar for bazel-diff from bazel/tools.MODULE.bazel
  • scripts/diff-build now downloads the jar to /tmp/bazel-diff-<version>.jar via curl on first run, reusing it on subsequent runs
  • sha256 checksum is verified on download; version and checksum are pinned as script variables

Testing Done

  • ./scripts/format-all — no changes
  • bazel test //... — 105 tests pass

…zel dep

Running `bazel build @bazel-diff//jar` was slow because it triggered
Bazel's full analysis phase just to fetch the jar. Switching to a plain
curl download skips that overhead entirely.

The jar is downloaded on first run to /tmp/bazel-diff-<version>.jar
and reused on subsequent runs. sha256 checksum is verified on download.
Version and checksum are pinned in the script; upgrading means bumping
those two variables.

Removes the http_jar entry for bazel-diff from tools.MODULE.bazel.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
1d4-web 5ca7e9d Commit Preview URL

Branch Preview URL
Mar 07 2026, 05:43 AM

@aaylward aaylward merged commit 01eb7a3 into main Mar 7, 2026
12 checks passed
@aaylward aaylward deleted the diff-build branch March 7, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant