Skip to content

[Bazel CI] Error name 'proto_library' is not defined  #2448

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4294#01936bcd-a84e-4f4c-8bab-8de6a9e46b73

Platform: Windows

Logs:

(04:08:45) ERROR: C:/b/ok4dcexf/external/stardoc+/stardoc/proto/BUILD:21:1: name 'proto_library' is not defined
(04:08:45) ERROR: C:/b/ok4dcexf/external/stardoc+/stardoc/proto/BUILD: no such target '@@stardoc+//stardoc/proto:stardoc_output_proto': target 'stardoc_output_proto' not declared in package 'stardoc/proto' defined by C:/b/ok4dcexf/external/stardoc+/stardoc/proto/BUILD
(04:08:45) DEBUG: C:/b/bk-windows-skgg/bazel-org-repo-root/rules_python/python/private/repo_utils.bzl:79:16:
rules_python:pypi:create_whl_repos WARNING: falling back to pip for installing the right file for some_pkg==0.0.1
(04:08:46) ERROR: C:/b/bk-windows-skgg/bazel-org-repo-root/rules_python/sphinxdocs/private/BUILD.bazel:118:17: no such target '@@stardoc+//stardoc/proto:stardoc_output_proto': target 'stardoc_output_proto' not declared in package 'stardoc/proto' defined by C:/b/ok4dcexf/external/stardoc+/stardoc/proto/BUILD and referenced by '//sphinxdocs/private:stardoc_output_proto_py_pb2'
(04:08:48) DEBUG: C:/b/ok4dcexf/external/gazelle+/internal/bzlmod/go_deps.bzl:571:40:

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_python
git reset 4ee7e256de85faff38db5f21defd660a2cd6aa85  --hard
export USE_BAZEL_VERSION=a3fcc22adf9f968d23047b6da05a01e0d68cbcfa
bazel build  -- ... @rules_python//examples/wheel/... 

CC Greenteam @comius

Metadata

Metadata

Assignees

No one assigned

    Labels

    need: upstream supportAn issue that needs changes in upstream code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions