[Bug]: Bundle pins can become unresolvable after component catalog updates
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
Look at the bundle resolver code, likely in a module handling extension or component resolution. The bug is that the resolver looks up by ID only, not by ID and pinned version. Find where catalog entries are fetched and version checks are performed. Start by reproducing the scenario with a test bundle and catalog. 'Done' means the resolver correctly attempts to retrieve the pinned version from its original URL even if a newer version is advertised.
由索引模型根据 Issue 内容生成。
描述
Bug Description
Bundle 0.4.12 pins an extension to 0.4.12. Because component catalogs contain only the currently advertised release, updating the extension’s catalog entry to 0.5.1 replaces the version and download URL used by bundle resolution. The resolver looks up the extension by ID—not by ID and pinned version—so the unchanged bundle now resolves to the 0.5.1 entry. The subsequent version check rejects that selection. It never attempts to retrieve 0.4.12, even when that release remains available.
Steps to Reproduce
This scenario is derived from source inspection; runtime reproduction is still needed.
-
Prepare a bundle that pins an extension or preset to version
0.4.12. -
Make that version available through an install-enabled component catalog.
-
Update the catalog entry to advertise version
0.5.1, leaving the0.4.12release artifact available at its original URL. -
In a fresh initialized project with no affected components installed, configure that component catalog.
-
Install the original bundle using
specify bundle install <path-to-bundle.yml>. -
Observe that component resolution rejects the version mismatch before attempting to retrieve the pinned release.
Expected Behavior
The bundle retrieves and installs its pinned component version when that release remains available, regardless of whether a newer version is advertised.
If the pinned version cannot be retrieved, installation reports that clearly without silently substituting another version.
Actual Behavior
The inspected resolver compares the bundle’s pin against the selected catalog entry’s version and raises an error when they differ. It does not attempt to locate the older pinned release.
Specify CLI Version
1.0.10
AI Agent
GitHub Copilot
Operating System
To be recorded during runtime reproduction.
Python Version
To be recorded during runtime reproduction.
Error Logs
No runtime logs captured. The inspected extension resolver produces the following error for the example above:
Extension 'specassay-check' is pinned to version 0.4.12 in the bundle manifest, but the resolved version is 0.5.1. Update the bundle's pinned version or the source before installing.
Additional Context
Observed during #4703
AI Disclosure
GitHub Copilot using GPT-6 Astra (gpt-6-astra), human-supervised, assisted with source inspection, related-issue research, and drafting this report.
- 主要语言
- Python
- 星标
- 138k
- 派生
- 12.4k
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 164
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/spec-kit 的其他 Issue
-
triage-nice-to-have
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
enhancement needs-triage triage-can-wait
难度 2/5 1-3 小时 新手友好度 65/100
github/spec-kit#4627 · 3 条评论 ·
维护者通常 2 天内回复
-
extension-submission triage-can-wait
难度 2/5 1-3 小时 新手友好度 75/100
github/spec-kit#4626 · 1 条评论 ·
维护者通常 2 天内回复
-
needs-triage triage-nice-to-have
难度 2/5 1-3 小时 新手友好度 72/100
github/spec-kit#4527 · 1 条评论 ·
维护者通常 2 天内回复
-
bug-assess severity-medium
难度 2/5 1-3 小时 新手友好度 72/100
github/spec-kit#4273 · 3 条评论 ·
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
gradio-app/gradio#13895 ·
维护者通常 1 天内回复
-
build-error
难度 2/5 1-3 小时 新手友好度 76/100
spack/spack-packages#6713 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ActivityWatch/activitywatch#1464 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search results 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
bytedance/trae-agent#483 ·
维护者通常 1 天内回复