bazel-skylib
bazel-skylib copied to clipboard
Common useful functions and rules for Bazel
Incompatible flag --incompatible_disable_depset_items will be enabled by default in a future Bazel release [1], thus breaking Bazel skylib. The flag is documented here: https://github.com/bazelbuild/bazel/issues/9017 Please check the following CI builds...
Some workflows apply a top level aspect to a build, such as: ``` bazel build //foo:bar --aspect=//baz:my_aspect.bzl%my_aspect ``` It would be nice to have a canonical test rule which would...
I got some feedback today that it was unclear how to access the `target_under_test` target in analysistest (`ctx.attr.analysis_test` returns a list!) We can alleviate some of this confusion with a...
The behavior of `asserts.set_equals` is confusing (it uses old_sets instead of sets) and should be updated.
(Maybe this belongs in Bazel's component.) It was mentioned on the Slack that you can't define a bzl_library for your own .bzl files if they load files in @bazel_tools. At...
* [Skylark → Starlark](https://blog.bazel.build/2018/08/17/starlark.html) * Skydoc → [Stardoc](https://github.com/bazelbuild/stardoc) * Skylib → Starlib?
This process was started in commit 1099dd2 by @thomasvl . 1. Use a `print()` warning. 1. Wait one or two releases. ← we are here. 1. Use a `fail()` error....
… another rule or a filegroup by subpath
As seen in #49, you can update a .bzl file to add another load statement, but failing to add the dep for the `skylark_library` doesn't cause the build to break....
Now that Bazel ships libraries for all major languages that make it easy to access runfiles by their "runfiles-root-relative path" via the `rlocation` function, it would be very useful if...