Laurent Le Brun

Results 137 comments of Laurent Le Brun

Looks good to me. Instead of adding it a special case for WORKSPACE (as proposed), we could also imagine a generic way to refer to any file on the disk....

cc @mhlopko for C++, @iirina for Java

This can be useful, indeed. Can describe more precisely the syntax you suggest?

It's correct, this is currently not supported. However, I feel like this is a very niche need and it doesn't match the style recommendations in Bazel. I would encourage you...

Inside a monorepo, the usual recommendation is to do a depot cleanup (do it yourself if possible, it's sometimes automatable; or you can file bugs against other teams), and then...

I think that's a feature request for Buildifier, so I've transferred the issue. At the moment, we can only mark functions as deprecated: https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#deprecated-function

If you use the Go API to manipulate the AST, you can force one of the formats. So if it's important for your use-case, you can it. When using the...

Also `native.existing_rules()[x]` can be simplified as `native.existing_rule(x)`