Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 787 Bytes

resource_sets.md

File metadata and controls

30 lines (16 loc) · 787 Bytes

Utilities for rules that expose resource_set on ctx.actions.run[_shell]

Workaround for bazelbuild/bazel#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