Skip to content

Drop Bazel 6 support and fix reproducible extension metadata (#342)#343

Merged
xnox merged 1 commit into
mainfrom
drop-6
Jul 1, 2026
Merged

Drop Bazel 6 support and fix reproducible extension metadata (#342)#343
xnox merged 1 commit into
mainfrom
drop-6

Conversation

@xnox

@xnox xnox commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

Removes Bazel 6 from the supported set and, now that the minimum Bazel is 7.6.1, fixes #342 and removes the pre-7.1 range-request workaround.

Test plan

  • bazel test //... at the root passes (6/6), including the stardoc diff test confirming docs/rules.md is in sync, and the examples/lock / wolfi-base tests that perform real apk range-fetches.
  • The e2e/smoke WORKSPACE flow passes (3/3), fetching musl/busybox via native Range headers with no credential helper.

Closes #342

🤖 Generated with Claude Code

Bazel 6 is removed from the CI matrix and from the supported-versions
docs, raising the minimum supported Bazel to 7.6.1.

With that minimum, two follow-ups become possible:

- Fix #342: the apko module extension now sets
  extension_metadata(reproducible = True) unconditionally, replacing the
  always-False `hasattr(module_ctx, "bazel_version")` guard. This keeps
  the extension's generated repos out of consumers' MODULE.bazel.lock,
  as originally intended by #313/#137. reproducible= has been available
  since Bazel 7.1.

- Remove the pre-7.1 range-request workaround. rctx.download now always
  sends a native Range header, so the URL-rewriting fallback, the
  initial-setup credential-helper machinery (apko_bazelrc, range.sh,
  .apko/.bazelrc, the initial-setup check and docs) are all dead code
  and are deleted.

Verified: `bazel test //...` passes at the root (incl. the stardoc diff
test) and the e2e/smoke WORKSPACE flow fetches apks via native Range
headers with no credential helper.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@xnox
xnox requested a review from zmarano July 1, 2026 22:22
@xnox
xnox merged commit 76b9800 into main Jul 1, 2026
23 checks passed
@xnox
xnox deleted the drop-6 branch July 1, 2026 22:36
@dmartin-figma

Copy link
Copy Markdown

❤️

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.

apko extension reproducible=True gate never fires — hasattr(module_ctx, "bazel_version") is always False

3 participants