Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
incompatible_no_kwargs_in_build_files: *args and **kwargs are forbidden in BUILD files #8021
cc_library(name = x, **other_args)
The main reason is that it makes BUILD files hard to read and manipulate (both for humans and for tools). The list of arguments should be explicit.
There's currently one bug. The check is checking only top-level function calls, and not nested function calls.
When the flag
some_fct(cc_library(name = x, **other_args))
This bug fix is backward incompatible, which is why we roll it out behind a flag.
Flag added in: Bazel 0.26