This improves the error in the case your bzl_library does nothing. Otherwise you end up with something weirder later:
BUILD:35:12: in deps attribute of bzl_library rule LABEL: 'DEP' does not produce any bzl_library deps files (expected .bzl)
Ideally we could set allow_empty = False on srcs but currently it's valid to just have a bzl_library target that aggregates multiple other libraries in its deps.
This improves the error in the case your bzl_library does nothing. Otherwise you end up with something weirder later:
Ideally we could set
allow_empty = False
onsrcs
but currently it's valid to just have a bzl_library target that aggregates multiple other libraries in its deps.