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

[airgapped] use ctx.download_and_extract over ctx.download #1

Merged
merged 1 commit into from
Sep 26, 2022
Merged

[airgapped] use ctx.download_and_extract over ctx.download #1

merged 1 commit into from
Sep 26, 2022

Conversation

timothytrippel
Copy link
Collaborator

As we learned when attempting to use rules_rust in an airgapped environment (see
lowRISC/rules_rust@3ea1eda), the ctx.download action does not seem to cache downloads in the repository cache. As such, files will not be available on airgapped system simply by prefetching/populating the repository cache. This patches rules_go to only download go toolchains with the ctx.download_and_extract action until Issue bazel-contrib#2771 (bazel-contrib#2771) is properly resolved.

Signed-off-by: Timothy Trippel ttrippel@google.com

As we learned when attempting to use `rules_rust` in an airgapped
environment (see
lowRISC/rules_rust@3ea1eda),
the `ctx.download` action does not seem to cache downloads in the
repository cache. As such, files will not be available on airgapped
system simply by prefetching/populating the repository cache. This
patches `rules_go` to only download go toolchains with the
`ctx.download_and_extract` action until Issue bazel-contrib#2771
(bazel-contrib#2771) is properly
resolved.

Signed-off-by: Timothy Trippel <ttrippel@google.com>
@timothytrippel timothytrippel merged commit 07fe5f4 into lowRISC:master Sep 26, 2022
@timothytrippel timothytrippel deleted the fix-download-caching-bug branch September 26, 2022 20:34
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