Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bazel CI] Build failed with missing target error: "no such target '//cpp:plugin_library" #6876

Open
sgowroji opened this issue Oct 10, 2024 · 1 comment
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: c++ C++ rules integration product: IntelliJ IntelliJ plugin type: bug

Comments

@sgowroji
Copy link
Member

sgowroji commented Oct 10, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4189#019274a0-c4ff-44ed-8559-410194353abf

Platform: Ubuntu

Logs:

 ERROR: Traceback (most recent call last):
    File "/var/lib/buildkite-agent/builds/bk-docker-mgdv/bazel-org-repo-root/intellij/cpp/BUILD", line 23, column 16, in <toplevel>
        srcs = glob([
Error in glob: glob pattern 'src/com/google/idea/blaze/cpp/includes/*.java' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
(04:13:29) ERROR: /var/lib/buildkite-agent/builds/bk-docker-mgdv/bazel-org-repo-root/intellij/cpp/BUILD: no such target '//cpp:plugin_library': target 'plugin_library' not declared in package 'cpp' defined by /var/lib/buildkite-agent/builds/bk-docker-mgdv/bazel-org-repo-root/intellij/cpp/BUILD
(04:13:29) ERROR: /var/lib/buildkite-agent/builds/bk-docker-mgdv/bazel-org-repo-root/intellij/aswb/BUILD:291:16: no such target '//cpp:plugin_library': target 'plugin_library' not declared in package 'cpp' defined by /var/lib/buildkite-agent/builds/bk-docker-mgdv/bazel-org-repo-root/intellij/cpp/BUILD and referenced by '//aswb:aswb_bazel_java_deps'
(04:13:29) ERROR: Analysis of target '//aswb:aswb_bazel_java_deps' failed; build aborted: Analysis failed
(04:13:29) INFO: Elapsed time: 2.217s, Critical Path: 0.03s
(04:13:29) INFO: 1 process: 1 internal.
(04:13:29) ERROR: Build did NOT complete successfully
(04:13:29) FAILED:

Culprit: bazelbuild/bazel#8195

Steps:

 git clone https://github.com/bazelbuild/intellij
git reset 0bdafa1c06642c24004ba1337f46b2c2619f9b0e  --hard
export USE_BAZEL_VERSION=788b6080f54c6ca5093526023dfd9b12b90403f8
bazel build --define=ij_product=android-studio-latest //aswb/... 

CC Greenteam @fweikert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: c++ C++ rules integration product: IntelliJ IntelliJ plugin type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

4 participants