This is the multi-page printable view of this section.
Click here to print.
Return to the regular view of this page.
Bzlenv
Setup bazel environment
Rules to create a bazel environment which functions similar to venv
Features
- Adds bazel-built tools to
${PATH}
- Exports .env
Usage
Create env and activate:
. "$(bazel run //tools/bzlenv)"
Activate existing env:
Deactivate env:
1.1 - al_bzlenv_binary
al_bzlenv_binary
load("@com_alwaldend_src//tools/bzlenv/main/bzl:al_bzlenv_binary.bzl", "al_bzlenv_binary")
al_bzlenv_binary(name, activate, tools)
Dev shell binary
ATTRIBUTES
| Name |
Description |
Type |
Mandatory |
Default |
| name |
A unique name for this target. |
Name |
required |
|
| activate |
Activation script |
Label |
optional |
"@com_alwaldend_src//tools/bzlenv/main/sh:activate" |
| tools |
Tools, keys are tool names, values are tool labels |
Dictionary: String -> Label |
optional |
{} |