bazelisk icon indicating copy to clipboard operation
bazelisk copied to clipboard

Error loading package under directory error with Bazel@HEAD in CI

Open sgowroji opened this issue 1 year ago • 3 comments

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

sgowroji avatar Mar 06 '24 04:03 sgowroji

Hi @philwo, Can you take a look on the above failures. Thanks!

sgowroji avatar Mar 15 '24 05:03 sgowroji

Above issue is stale from long time, we'll have to disable Bazelisk in Bazel's downstream pipeline.

sgowroji avatar Mar 18 '24 06:03 sgowroji

/cc @fweikert Can you take a look?

meteorcloudy avatar Mar 18 '24 10:03 meteorcloudy

If I'm reading correctly, I think https://github.com/bazelbuild/bazelisk/pull/564 will resolve this problem.

jwnimmer-tri avatar Mar 25 '24 03:03 jwnimmer-tri

@jwnimmer-tri Thank you so much!

meteorcloudy avatar Mar 25 '24 10:03 meteorcloudy

Closed by https://github.com/bazelbuild/bazelisk/pull/564

meteorcloudy avatar Apr 16 '24 15:04 meteorcloudy