Error loading package under directory error with Bazel@HEAD in CI
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3699#018e1182-9376-4bbe-9237-c67f6f0d7bc4
Platform: Multiple
Logs:
ERROR: [0mSkipping '//...': error loading package under directory '': error loading package '': Every .bzl file must have a corresponding package, but '@@rules_nodejs~//:index.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.
ERROR: [0merror loading package under directory '': error loading package '': Every .bzl file must have a corresponding package, but '@@rules_nodejs~//:index.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.
ERROR: [0mBuild did NOT complete successfully
FAILED:[0m
FAILED:[0m
Error: The command exited with status 1[0m
error: exit status 1
Steps:
git clone https://github.com/bazelbuild/bazelisk
git reset fec36a9bcfbf5076380fa129ef3ec21880c2fc4f --hard
export USE_BAZEL_VERSION=2e6a8f0dd0108953960665ca5244b7239c8c28e6
bazel build //...
Culprit : bazelbuild/bazel@30d033c
CC Greenteam @comius
Hi @philwo, Can you take a look on the above failures. Thanks!
Above issue is stale from long time, we'll have to disable Bazelisk in Bazel's downstream pipeline.
/cc @fweikert Can you take a look?
If I'm reading correctly, I think https://github.com/bazelbuild/bazelisk/pull/564 will resolve this problem.
@jwnimmer-tri Thank you so much!
Closed by https://github.com/bazelbuild/bazelisk/pull/564