Skip to content

Allow passing a dictionary for resource_set#29285

Open
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/allow-passing-a-dictionary-for-resource_set
Open

Allow passing a dictionary for resource_set#29285
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/allow-passing-a-dictionary-for-resource_set

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Apr 13, 2026

Previously this only allowed a top level starlark function. Now users
still can't pass lambdas but they can pass pre-computed dictionaries
with the relevant elements. This is useful since at the action creation
time the rule author can very likely know these ballpark resource
requests, but they don't have all the context from a top level function.

Fixes #15187

Previously this only allowed a top level starlark function. Now users
still can't pass lambdas but they can pass pre-computed dictionaries
with the relevant elements. This is useful since at the action creation
time the rule author can very likely know these ballpark resource
requests, but they don't have all the context from a top level function.

Fixes bazelbuild#15187
@keith keith requested a review from a team as a code owner April 13, 2026 23:33
@keith keith requested review from gregestren and removed request for a team April 13, 2026 23:33
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions team-Starlark-Integration Issues involving Bazel's integration with Starlark, excluding builtin symbols awaiting-review PR is awaiting review from an assigned reviewer team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions team-Rules-API API for writing rules/aspects: providers, runfiles, actions, artifacts team-Starlark-Integration Issues involving Bazel's integration with Starlark, excluding builtin symbols

Projects

None yet

Development

Successfully merging this pull request may close these issues.

resource_set should allow specify the resource dict directly.

1 participant