Repository navigation
fix(registry): 修正未声明规则的 warning,避免误导作者写出装不上的包 - #29
Merged
Merged
Conversation
requires.rulesets 是运行时硬要求:目标 runtime 没注册(如 core:coc7)时,声明会让 发布校验直接失败(ruleset_runtime_missing),旧版本也随之不可安装。 上一版的 warning 只写「requires.rulesets 或 system_agnostic」,CoC 包作者照做就会 把包搞挂。改成三种情形分开说,并指向 diceframe#694 的兼容标签方案。 验证:node --test 15 passed;node scripts/validate.cjs 通过。
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.
问题
上一版 warning(#28)只写「写 requires.rulesets 或 system_agnostic: true」。
但
equires.rulesets 是运行时硬要求:core:coc7 没有注册,声明后发布校验直接
uleset_runtime_missing 失败,旧版本也会失去可安装性。CoC 包作者照字面做就会踩坑
(已在 coc-dagon 上复现)。
改动
warning 文案改成三种情形分别说明:
equires.rulesets
验证
ode --test tests/registry.test.cjs → 15 passed
ode scripts/validate.cjs → 通过
关联:diceframe/diceframe#694