This repo does not build successfully w/amd64 debian and Bazel 5 or 6

未关闭
#277 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
领域
build-system

调研方向

在使用 Bazel 5 或 6 的 amd64 Debian 上,通过 bazel build //... 重现该失败。先从 bzlmod/02-override_bazel_module/BUILD、examples/tutorial/backend 和 WORKSPACE.bazel 开始,然后追踪日志中显示的缺失符号和仓库。完成标准是该仓库能够在报告的配置范围内成功构建。

由索引模型根据 Issue 内容生成。

描述

invalid
aryehh@aryehh ~/Development/code/examples
 % bazel --version                                                                  
bazel 6.0.0
aryehh@aryehh ~/Development/code/examples
 % bazel build //...                                                                      
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 096687e2-7229-4ba9-aa60-bdba69e1c6ba
DEBUG: /usr/local/google/home/aryehh/.cache/bazel/_bazel_aryehh/d115293f84f1332379fb52a513faaa5c/external/build_bazel_rules_nodejs/index.bzl:73:14: yarn_install#yarn attribute not set and no repository named 'yarn' exists; installing default yarn
ERROR: Traceback (most recent call last):
	File "/usr/local/google/home/aryehh/Development/code/examples/bzlmod/02-override_bazel_module/BUILD", line 1, column 38, in <toplevel>
		load("@bazel_skylib//:version.bzl", "hello_msg")
Error: file '@bazel_skylib//:version.bzl' does not contain symbol 'hello_msg'
DEBUG: /usr/local/google/home/aryehh/Development/code/examples/bzlmod/06-specify_dev_dependency/BUILD:3:6: Bazel Skylib version: 1.2.1
INFO: Repository build_bazel_rules_android instantiated at:
  /usr/local/google/home/aryehh/Development/code/WORKSPACE.bazel:325:20: in <toplevel>
  /usr/local/google/home/aryehh/.cache/bazel/_bazel_aryehh/d115293f84f1332379fb52a513faaa5c/external/io_bazel_rules_kotlin/src/main/starlark/core/repositories/initialize.bzl:72:10: in kotlin_repositories
  /usr/local/google/home/aryehh/.cache/bazel/_bazel_aryehh/d115293f84f1332379fb52a513faaa5c/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
  /usr/local/google/home/aryehh/.cache/bazel/_bazel_aryehh/d115293f84f1332379fb52a513faaa5c/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: Skipping '//...': error loading package under directory '': error loading package 'examples/tutorial/backend': Unable to find package for @io_bazel_rules_appengine//appengine:appengine.bzl: The repository '@io_bazel_rules_appengine' could not be resolved: Repository '@io_bazel_rules_appengine' is not defined.
WARNING: Target pattern parsing failed.
ERROR: error loading package under directory '': error loading package 'examples/tutorial/backend': Unable to find package for @io_bazel_rules_appengine//appengine:appengine.bzl: The repository '@io_bazel_rules_appengine' could not be resolved: Repository '@io_bazel_rules_appengine' is not defined.
INFO: Elapsed time: 3.595s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (58 packages loaded)
    currently loading: frontend/planning/study/project/change/edit_change/new_line_change ... (109 packages)
主要语言
Starlark
星标
958
派生
582
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bazelbuild/examples 的其他 Issue

查看 bazelbuild/examples 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。