Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题分析与修复
问题原因
构建失败是由于
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成功构建提交信息
该修复解决了由于变量名拼写错误导致的构建失败问题,确保构建系统能够正常编译所有数据包项目。
Closes #130
opencode session | github run