You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you write ctx.bxl_actions from a bxl, the first thing you're confronted with is an error saying that you need to enable execution platforms.
It's not documented how to do this anywhere, the closest I could find was this page, but all it really says is that you have to enable execution platforms, but doesn't offer any information about how to do this.
For anyone else coming along with the same problem, I had some code like this:
Not sure if this is correct / ideal / missing something, but hopefully that helps someone else coming along.
Back to my original question, why is this needed? Core buck2 runtime doesn't need this when just building software. Obviously it can run actions, declare outputs, run arbitrary rule code, etc, without an execution platform. So what is special about bxl that makes it need an execution platform in order to do the exact same operations?
The text was updated successfully, but these errors were encountered:
What you did is correct, but also I think that normal buck2 runtime has some fallback behavior that wasn't implemented in BXL. I think it makes sense to add it to BXL too.
Side note - we are planning on adding more platform docs soon, sorry for the sparse documentation!
If you write
ctx.bxl_actions
from a bxl, the first thing you're confronted with is an error saying that you need to enable execution platforms.It's not documented how to do this anywhere, the closest I could find was this page, but all it really says is that you have to enable execution platforms, but doesn't offer any information about how to do this.
For anyone else coming along with the same problem, I had some code like this:
And then added this to my
.buckconfig
:Not sure if this is correct / ideal / missing something, but hopefully that helps someone else coming along.
Back to my original question, why is this needed? Core buck2 runtime doesn't need this when just building software. Obviously it can run actions, declare outputs, run arbitrary rule code, etc, without an execution platform. So what is special about bxl that makes it need an execution platform in order to do the exact same operations?
The text was updated successfully, but these errors were encountered: