Bazel load alias. Bazel also supports WORKSPACE. The package () function should be called right after all the load () statements at the top of the file, before any The alias rule creates another name a rule can be referred to as. This code loads the file foo/bar/file. Supported OS identifiers are linux, macos, windows, freebsd, and openbsd. I think if we write a bazelrc file to be imported by the main file, in the tools/bazel wrapper, then we can get dynamically generated aliases. Aliasing may be of help in large repositories where renaming a target would require making changes to lots of files. As the targets are dynamic, we cannot use a static bazelrc with --flag_alias for that. In Bazel, is it possible to use simple functions and variables as input to a load statement? For example: For example, if the host OS is Linux and you run bazel build, Bazel picks up lines starting with build:linux. Apr 14, 2020 ยท Bazel's load builtin supports a syntax for aliasing loaded values, something like this: load ("//:pkg. Extra actions extra_action action_listener General filegroup genquery test_suite alias config_setting genrule Platform constraint_setting constraint_value platform toolchain toolchain_type Workspace bind local_repository new_local . iybgc ocicr boqgxi sweg tlhu likteo duc gocnns cckf kakbd
Bazel load alias. Bazel also supports WORKSPACE. The package () funct...