bazelbuild / bazelisk

A user-friendly launcher for Bazel.
Apache License 2.0
1.95k stars 300 forks source link

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

Closed sgowroji closed 2 months ago

sgowroji commented 4 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3699#018e1182-9376-4bbe-9237-c67f6f0d7bc4

Platform: Multiple

Logs:

ERROR: Skipping '//...': 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: 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: Build did NOT complete successfully
FAILED: 
FAILED: 
Error: The command exited with status 1
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 commented 3 months ago

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

sgowroji commented 3 months ago

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

meteorcloudy commented 3 months ago

/cc @fweikert Can you take a look?

jwnimmer-tri commented 3 months ago

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

meteorcloudy commented 3 months ago

@jwnimmer-tri Thank you so much!

meteorcloudy commented 2 months ago

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