mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-12-01 07:15:24 +00:00
0fc838839c
* feat: add a helper for rules to work with resource_sets This API is poorly designed and needs some help to let rule users pick a value in cases that they aren't also the rule author * chore: add some cpu resource_set values as well
788 B
Generated
788 B
Generated
Utilities for rules that expose resource_set on ctx.actions.run[_shell]
Workaround for https://github.com/bazelbuild/bazel/issues/15187
Note, this workaround only provides some fixed values for either CPU or Memory.
Rule authors who are ALSO the BUILD author might know better, and can write custom resource_set functions for use within their own repository. This seems to be the use case that Google engineers imagined.
resource_set
resource_set(attr)
PARAMETERS
Name | Description | Default Value |
---|---|---|
attr | - |
none |