al_genrule_rule
Categories:
al_genrule_executable
load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule_rule.bzl", "al_genrule_executable")
al_genrule_executable(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)
Build executable using shell worker
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| srcs | Sources, will not be added to runfiles | List of labels | optional | [] |
| data | Data, will be added to runfiles | List of labels | optional | [] |
| outs | Outputs | List of labels; nonconfigurable | required | |
| cmd | Script to execute | String | required | |
| set_flags | set flags | List of strings | optional | ["-eux"] |
| shell | shell to use | String | optional | "/bin/sh" |
| tools | Tools, will be added to runfiles | List of labels | optional | [] |
| worker | Worker binary | Label | optional | "@com_alwaldend_src//go/bazel-shell-worker" |
al_genrule_regular
load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule_rule.bzl", "al_genrule_regular")
al_genrule_regular(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)
Build shell worker rule
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| srcs | Sources, will not be added to runfiles | List of labels | optional | [] |
| data | Data, will be added to runfiles | List of labels | optional | [] |
| outs | Outputs | List of labels; nonconfigurable | required | |
| cmd | Script to execute | String | required | |
| set_flags | set flags | List of strings | optional | ["-eux"] |
| shell | shell to use | String | optional | "/bin/sh" |
| tools | Tools, will be added to runfiles | List of labels | optional | [] |
| worker | Worker binary | Label | optional | "@com_alwaldend_src//go/bazel-shell-worker" |
al_genrule_test
load("@com_alwaldend_src//bzl/rules/bazel_shell_worker:al_genrule_rule.bzl", "al_genrule_test")
al_genrule_test(name, srcs, data, outs, cmd, set_flags, shell, tools, worker)
Test using shell worker
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| srcs | Sources, will not be added to runfiles | List of labels | optional | [] |
| data | Data, will be added to runfiles | List of labels | optional | [] |
| outs | Outputs | List of labels; nonconfigurable | required | |
| cmd | Script to execute | String | required | |
| set_flags | set flags | List of strings | optional | ["-eux"] |
| shell | shell to use | String | optional | "/bin/sh" |
| tools | Tools, will be added to runfiles | List of labels | optional | [] |
| worker | Worker binary | Label | optional | "@com_alwaldend_src//go/bazel-shell-worker" |