Skip to content

[Bazel CI] ERROR: no such target '@@googletest+//:gtest': target 'gtest' not declared in package '' defined by /private/var/tmp/_bazel_buildkite/googletest+/BUILD.bazel #641

@satyanandak

Description

@satyanandak

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5067#019a6bf5-60a4-4306-9429-b49e0c99eed6

Platform: Ubuntu, MacOS

Logs:

(05:12:33) ERROR: /private/var/tmp/_bazel_buildkite/52ca603d8c75fd0a5c5014b85d9a18ae/external/googletest+/BUILD.bazel: no such target '@@googletest+//:gtest': target 'gtest' not declared in package '' defined by /private/var/tmp/_bazel_buildkite/52ca603d8c75fd0a5c5014b85d9a18ae/external/googletest+/BUILD.bazel
(05:12:33) ERROR: /Users/buildkite/builds/bk-macos-arm64-ngy9/bazel-org-repo-root/examples/third-party-dependencies/BUILD:35:8: no such target '@@googletest+//:gtest': target 'gtest' not declared in package '' defined by /private/var/tmp/_bazel_buildkite/52ca603d8c75fd0a5c5014b85d9a18ae/external/googletest+/BUILD.bazel and referenced by '//:gtest_test'
(05:12:33) ERROR: Analysis of target '//:gtest_test' failed; build aborted: Analysis failed
(05:12:33) INFO: Elapsed time: 6.641s, Critical Path: 0.02s
(05:12:33) INFO: 1 process: 1 internal.
(05:12:33) ERROR: Build did NOT complete successfully
(05:12:33) FAILED:

Culprit:

Steps:

git clone https://github.com/bazelbuild/examples
git reset 1fc2622b5f1b41183c6118059ac57e4590d92de7 --hard
export USE_BAZEL_VERSION=5a7d6f4e4dee4a08c95ca2450f046f566537266d
bazel build //... 

CC Greenteam @kotlaja

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions