Provide tools for a hermetic build.
A exec that uses hermetic tools.
Hermetic tools are resolved from toolchain resolution. To replace it, register a different hermetic toolchain.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| name | name of the target | none |
| script | See [exec.script] | none |
| data | See [exec.data] | None |
| kwargs | See [exec] | none |
A exec_test that uses hermetic tools.
Hermetic tools are resolved from toolchain resolution. To replace it, register a different hermetic toolchain.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| name | name of the target | none |
| script | See [exec_test.script] | none |
| data | See [exec_test.data] | None |
| kwargs | See [exec_test] | none |
A genrule that uses hermetic tools.
Hermetic tools are resolved from toolchain resolution. To replace it, register a different hermetic toolchain.
Only cmd is expected and used. cmd_bash, cmd_ps, cmd_bat etc. are ignored.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| name | name of the target | none |
| cmd | See genrule.cmd | none |
| tools | See genrule.tools | None |
| use_cc_toolchain | When set to True resolved CC toolchain is accessible from the genrule. | None |
| kwargs | See genrule | none |
Returns the resolved toolchain information.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| ctx | ctx. The rule must contain toolchains = [ hermetic_toolchain.type, ] | none |
RETURNS
_HermeticToolchainInfo (see hermetic_tools.bzl).
Provide tools for a hermetic build.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| name | name of the target | none |
| deps | additional dependencies. These aren't added to the PATH. | None |
| symlinks | A dictionary, where keys are labels to an executable, and values are names to the tool, separated with :. e.g.{“//label/to:toybox”: “cp:realpath”} | None |
| kwargs | Additional attributes to the internal rule, e.g. visibility. See complete list here. | none |