You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Prefer using the short name when referring to an eponymous target (`//x` instead of `//x:x`). If
> you are in the same package, prefer the local reference (`:x` instead of `//x`).
See: https://bazel.build/build/style-guide#target-naming
This syntax is supported on the command-line, but not in BUCK files. Unfortunately, the only(?)
Starlark formatter (buildifier: https://github.com/bazelbuild/buildtools) automatically abbreviates
targets on the assumption that this syntax is valid, which causes errors when using Buck2:
...
4: Error coercing "//src/Foo"
5: Invalid absolute target pattern `//src/Foo` is not allowed
6: Expected a `:`, a trailing `/...` or the literal `...`.
We can adjust the parsing rules to allow this syntax in more places.
0 commit comments