Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bazel/rules_rust] use forked/patched rules_rust repo #12526

Merged
merged 1 commit into from
May 9, 2022

Conversation

timothytrippel
Copy link
Contributor

As described in #12515, the upstream rules_rust repository attempted
to download several dependencies in a manner that did not first check
the repository cache before going to the network. This made supporting
an airgapped build environment problematic. To fix this issue, the
rules_rust repository was forked and patched. Please follow this link
for the commit message that describes the patch in detail:
lowRISC/rules_rust@be0d6ca

This commit update the bazel dependencies to use our patched
rust_rules instead of the upstream ones. Additionally, this commit
updates the prep-bazel-airgapped-builds.sh script to pre-fetch
additional dependencies to pre-populate the bazel repository cache with
additional required dependencies to support airgapped builds.

This fixes #12515.

Signed-off-by: Timothy Trippel [email protected]

As described in lowRISC#12515, the upstream `rules_rust` repository attempted
to download several dependencies in a manner that did not first check
the repository cache before going to the network. This made supporting
an airgapped build environment problematic. To fix this issue, the
`rules_rust` repository was forked and patched. Please follow this link
for the commit message that describes the patch in detail:
lowRISC/rules_rust@be0d6ca

This commit update the bazel dependencies to use our patched
`rust_rules` instead of the upstream ones. Additionally, this commit
updates the `prep-bazel-airgapped-builds.sh` script to pre-fetch
additional dependencies to pre-populate the bazel repository cache with
additional required dependencies to support airgapped builds.

This fixes lowRISC#12515.

Signed-off-by: Timothy Trippel <[email protected]>
@timothytrippel timothytrippel merged commit 43e59a9 into lowRISC:master May 9, 2022
@timothytrippel timothytrippel deleted the fix-rust-airgapped branch May 9, 2022 16:45
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.

[bazel] make rust_rules deps cacheable
2 participants