Open fweikert opened 5 years ago
IMO this is a bazel bug. There is no good way to write this test. https://github.com/bazelbuild/bazel/issues/7130
FWIW, with bazel 4.1.0 and bazel_skylib 1.0.3 (with url = "https://github.com/bazelbuild/bazel-skylib/archive/refs/tags/{}.tar.gz".format (skylib_version)
and sha256 = '7ac0fa88c0c4ad6f5b9ffb5e09ef81e235492c873659e6bb99efb89d11246bcba'
), this fails with
ERROR: error loading package '': Every .bzl file must have a corresponding package, but '@bazel_skylib//:workspace.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.
INFO: Elapsed time: 0.110s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
WORKSPACE:
Command:
bazel build @bazel_skylib//tests/...
Output: