- Notifications
You must be signed in to change notification settings - Fork4.3k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Use this discussion to provide feedback on the new remote repository cache introduced in Bazel 9 as an experimental feature. FAQsHow do I enable the remote repo contents cache?
Which repo rules are supported?
|
BetaWas this translation helpful?Give feedback.
All reactions
🚀 1
Replies: 2 comments 6 replies
-
As a starting point I have 2 initial questions:
|
BetaWas this translation helpful?Give feedback.
All reactions
-
I started an FAQ list with answers to these questions. |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
-
The commit message contains this:
Do I interpret this correctly to mean that I need to allow Bazel to write to the remote AC directly? Since repository rules still run locally (unless they are cached), this design makes a lot of sense. |
BetaWas this translation helpful?Give feedback.
All reactions
-
That is correct. My general assumption has been that you would allow CI machines to write AC entries and those would then also be able to populate the remote repo contents. Devs could then consume those just fine. Are you really referring to a setup in which Bazel itself never writes AC entries but remote executors do so directly? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Yes that's precisely correct. I believe BuildBuddy and BuildBarn support this configuration. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I think the feature is still great and I'll enable it in most environments, but I think it's important to point out what it entails. |
BetaWas this translation helpful?Give feedback.
All reactions
-
This would be difficult to support since it's completely unclear how to remotely execute (even a reproducible) repo rule - this would essentially require turning Bazel into a standalone Starlark interpreter of sorts. I guess at that point it would be easier to set up a trusted "repo rule evaluation" machine running regular Bazel? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Yes, sorry. I think we are talking about different things. |
BetaWas this translation helpful?Give feedback.