"bazel build //:envoy" fails on fresh clone of this repo
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp, docker
- 领域
- build-system, devops
调研方向
先从 README 中的构建说明开始,然后检查 .devcontainer/devcontainer.json、.devcontainer/setup.sh 和 WORKSPACE,了解 ENVOY_SRCDIR 是如何分配和使用的。重新创建 fresh-clone dev container 并运行 bazel build //:envoy;当 setup 完成且构建能够解析 Envoy 仓库而不出现路径缺失错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Instruction here, https://github.com/envoyproxy/envoy-filter-example?tab=readme-ov-file#building
We fail to resolve {ENVOY_SCRDIR}. Now, for dev container support, we set this at: https://github.com/envoyproxy/envoy/blob/8283565cffc7b713ef1b3a8b79c285c269e15db3/.devcontainer/devcontainer.json#L16-L18
Error initializing container
This error is found in the Terminal tab.
Running the postCreateCommand from devcontainer.json...
[1856 ms] Start: Run in container: /bin/sh -c .devcontainer/setup.sh
.devcontainer/setup.sh: line 3: bazel/setup_clang.sh: No such file or directory
Done. Press any key to close the terminal.
Error during build step
vscode@docker-desktop:/workspaces/envoy-filter-example$ bazel build //:envoy
WARNING: The following configs were expanded more than once: [clang-libc++, libc++, clang]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
ERROR: /workspaces/envoy-filter-example/WORKSPACE:3:17: fetching local_repository rule //external:envoy: java.io.IOException: The repository's path is "{ENVOY_SRCDIR}" (absolute: "/workspaces/envoy-filter-example/{ENVOY_SRCDIR}") but it does not exist or is not a directory.
ERROR: Error computing the main repository mapping: no such package '@@envoy//bazel': The repository's path is "{ENVOY_SRCDIR}" (absolute: "/workspaces/envoy-filter-example/{ENVOY_SRCDIR}") but it does not exist or is not a directory.
Computing main repo mapping:
vscode@docker-desktop:/workspaces/envoy-filter-example$ echo $ENVOY_S
$ENVOY_SRCDIR $ENVOY_STDLIB
vscode@docker-desktop:/workspaces/envoy-filter-example$ echo $ENVOY_SRCDIR
/workspaces/envoy-filter-example
vscode@docker-desktop:/workspaces/envoy-filter-example$
- 主要语言
- C++
- 星标
- 361
- 派生
- 220
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
envoyproxy/envoy-filter-example 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 20/100
envoyproxy/envoy-filter-example#178 · 1 个 reaction ·
-
Startup failure未关闭
难度 4/5 3-5 天 新手友好度 25/100
-
难度 1/5 1 小时以内 新手友好度 38/100
envoyproxy/envoy-filter-example#164 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
查看 envoyproxy/envoy-filter-example 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
least_squares returns a nonfinite objective for an invalid initial residual可能已有人在做 @sylvesterkaczmarek 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
google-deepmind/mujoco#4023 ·
维护者通常 11 天内回复
-
bug triage
难度 2/5 1-3 小时 新手友好度 78/100
envoyproxy/envoy#49711 ·
维护者通常 1 天内回复
-
bug triage
难度 2/5 1-3 小时 新手友好度 66/100
secondlife/viewer#6820 ·
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 1/5 1 小时以内 新手友好度 83/100
维护者通常 1 天内回复