Skip to content

修复变量名错误导致的构建失败#131

Merged
WhiteElephant-abc merged 1 commit intomainfrom
opencode/issue130-20260124175931
Jan 24, 2026
Merged

修复变量名错误导致的构建失败#131
WhiteElephant-abc merged 1 commit intomainfrom
opencode/issue130-20260124175931

Conversation

@opencode-agent
Copy link
Copy Markdown
Contributor

问题分析与修复

问题原因

构建失败是由于 rule/datapack.bzl 文件中第607行使用了未定义的变量 _ALL_MINECRAFT_VERSIONS。正确的变量名应为 ALL_MINECRAFT_VERSIONS(第23行导入的常量)。

修复内容

  • 文件: rule/datapack.bzl:607
  • 变更: 将 _ALL_MINECRAFT_VERSIONS 更正为 ALL_MINECRAFT_VERSIONS
  • 影响范围: 仅修复变量名拼写错误,不影响构建逻辑

验证结果

  • 语法检查通过: bazel query //subprojects/stone-disappearance:stone-disappearance 成功执行
  • 构建测试通过: bazel build //subprojects/stone-disappearance:stone-disappearance 成功构建
  • 无破坏性变更: 现有构建流程完全保持一致

提交信息

🐛 fix: correct variable name causing build failure

Fix undefined variable error in datapack.bzl line 607 where _ALL_MINECRAFT_VERSIONS was used instead of ALL_MINECRAFT_VERSIONS.

This resolves the build failure introduced in commit 0f5322d.

该修复解决了由于变量名拼写错误导致的构建失败问题,确保构建系统能够正常编译所有数据包项目。

Closes #130

New%20session%20-%202026-01-24T17%3A59%3A30.767Z
opencode session  |  github run

Fix undefined variable error in datapack.bzl line 607 where _ALL_MINECRAFT_VERSIONS was used instead of ALL_MINECRAFT_VERSIONS.

This resolves the build failure introduced in commit 0f5322d.
@opencode-agent opencode-agent bot mentioned this pull request Jan 24, 2026
@WhiteElephant-abc WhiteElephant-abc merged commit 6badf71 into main Jan 24, 2026
8 checks passed
@WhiteElephant-abc WhiteElephant-abc deleted the opencode/issue130-20260124175931 branch January 24, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0f5322d 构建失败

1 participant