fix: BCR presubmit with Nix + Rust nightly install#23
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MODULE.bazelforexamples/rust_to_rocqso BCR presubmit can build it as an independent Bazel module.bcr/presubmit.ymlto install Nix and Rust nightly viashell_commands, matching the pattern used byrules_nixpkgs_coreandrules_elmubuntu2204+ Bazel8.x(Nix single-user install is most reliable on Linux)Context
BCR PR #7415 (
rules_rocq_rust@0.1.0-rc2) has a failingbcr-presubmitbecause:MODULE.bazelin the test module directoryThis follows the proven BCR pattern from
rules_nixpkgs_coreandrules_elm— install Nix via--no-daemoninshell_commandsand set PATH for the Buildkite agent.Test plan
bazel query //:allpasses fromexamples/rust_to_rocq/(verified locally)🤖 Generated with Claude Code