Repository navigation
fix(build): name options the build system no longer declares in droppedOptions - #124
Merged
Merged
Conversation
…edOptions build.detect copied only declared options into each instance's stored values, so a value saved for an option a plugin update removed never reached option resolution and droppedOptions stayed empty. Detection now passes those values on too; resolution names them in droppedOptions and they still contribute nothing to options, the model or the fingerprint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
关联 Issue / Linked issue
droppedOptions里。桌面端的提示和清除入口在配套的桌面 PR 里)PR 类型 / Type
改动说明
build.detect组装实例的已存值时,只遍历清单里已声明的选项。插件更新后不再声明的选项(例如 Maven 插件去掉的javaHome)的值根本没有传到选项解析,所以options::resolve_with_facts里“未声明就记为 dropped”的分支在检测路径上永远走不到,droppedOptions只包含被拒绝的已声明选项。结果宿主无从得知用户还保存着一个已经不生效的值,#123 加的“只能删除”的编辑也就没有入口。droppedOptions;它们不进入options、模型和指纹,与之前一样不生效。rust-core-api.md中build.detect一行补充:droppedOptions既包括已声明选项不接受的值,也包括构建系统不再声明的选项 ID 的值。插件契约、能力和插件函数协议都没有改动,所以不登记协议更新记录。验证
detection_names_saved_options_the_build_system_no_longer_declares:在工作区值、实例值、实例默认值中各放一个未声明的选项,检测结果的droppedOptions为三者排序后的列表;options、model、optionFingerprint与没有这些值时完全相同。cargo test -p lithe-core --lib -- build_systems:67 项通过;cargo fmt --check、cargo clippy -p lithe-build --all-targets -D warnings无输出。LITHE_CORE_RUST_DIR)运行配套测试TestBuildOptionsShowTheRuntimeAndDroppedOptions,通过。🤖 Generated with Claude Code