Alexandre Rostovtsev
Alexandre Rostovtsev
Suppose we want to programmatically edit a top-level variable in a BUILD or bzl file. For example, maybe we want to add a new entry to a list constant in...
In particular, we want this to be able to fix https://github.com/bazelbuild/bazel-skylib/issues/344 for both Unix and Windows.
_Originally posted by @dws in https://github.com/bazelbuild/bazel/issues/13907#issuecomment-1239478273_ If `--incompatible_existing_rules_immutable_view` is set, `json.encode` (or `encode_indent`) will encode an immutable `native.existing_rule` or `existing_rules` object as an array of field names, instead of a...
Reminder to myself: after merging https://github.com/bazelbuild/bazel-skylib/pull/385, we will need some sort of a diff test to keep the module version and the `version.bzl` version in sync; neither file can load...
Extract the version from version.bzl using sed. For MODULE.bazel, we need to use buildifier to avoid confusion between skylib's version and our dependencies' versions.
Currently, it only supports attributes whose type is string or label: see https://github.com/bazelbuild/buildtools/blob/master/edit/buildozer.go#L420 It would be useful to have a single command for removing list-valued attributes such as deps. (The...
Users have reported that downloads from https://releases.bazel.build became inaccessible from China: https://github.com/bazelbuild/bazel/pull/11403 Verified using https://www.websitepulse.com/tools/china-firewall-test that downloads from github should work (and downloads from releases.bazel.build don't).
Since we don't include anything from //distro/... in the distro tarball itself. Note that skylib's distro packaging follows the same logic.
We generate API docs for bazel build language objects which include a doc field (such as rules, providers, and aspects) or have a docstring set by convention (modules, functions); but...
If a provider has `init` specified, we want to document it. In other words, ```bzl def _my_info_init(a, c = "hello"): """ MyInfo constructor Args: a: Value of field a c:...