Skip to content

fix: BCR presubmit with Nix + Rust nightly install#23

Merged
avrabe merged 1 commit intomainfrom
fix/bcr-presubmit-pattern1
Mar 9, 2026
Merged

fix: BCR presubmit with Nix + Rust nightly install#23
avrabe merged 1 commit intomainfrom
fix/bcr-presubmit-pattern1

Conversation

@avrabe
Copy link
Contributor

@avrabe avrabe commented Mar 9, 2026

Summary

  • Add standalone MODULE.bazel for examples/rust_to_rocq so BCR presubmit can build it as an independent Bazel module
  • Update .bcr/presubmit.yml to install Nix and Rust nightly via shell_commands, matching the pattern used by rules_nixpkgs_core and rules_elm
  • Restrict BCR presubmit to ubuntu2204 + Bazel 8.x (Nix single-user install is most reliable on Linux)

Context

BCR PR #7415 (rules_rocq_rust@0.1.0-rc2) has a failing bcr-presubmit because:

  1. No MODULE.bazel in the test module directory
  2. BCR runners don't have Nix or Rust nightly installed

This follows the proven BCR pattern from rules_nixpkgs_core and rules_elm — install Nix via --no-daemon in shell_commands and set PATH for the Buildkite agent.

Test plan

  • bazel query //:all passes from examples/rust_to_rocq/ (verified locally)
  • CI passes on this PR
  • After merge: tag v0.1.0, trigger publish-to-bcr, verify presubmit passes

🤖 Generated with Claude Code

- Add standalone MODULE.bazel for examples/rust_to_rocq test module
  so BCR presubmit can build it as an independent Bazel module
- Update .bcr/presubmit.yml to install Nix (--no-daemon) and Rust
  nightly-2024-12-07 with rustc-dev via shell_commands, matching
  the pattern used by rules_nixpkgs_core and rules_elm
- Restrict to ubuntu2204 + Bazel 8.x (Nix single-user install is
  most reliable on Linux)
- Set PATH and LIBRARY_PATH for Buildkite CI agent environment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@avrabe avrabe merged commit 6a8da0b into main Mar 9, 2026
7 checks passed
@avrabe avrabe deleted the fix/bcr-presubmit-pattern1 branch March 9, 2026 18:48
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