Repository navigation
Commit 002443a
fix(extensions): block bundled updates whenever the local copy lags the catalog
Copilot review round 2 on #4351: the offer gate only blocked a bundled
copy that was no newer than the installation. With installed v1, locally
bundled v2, and catalog v3, the command offered and installed v2 and
reported success - leaving the project lagging the catalog with no
mention of it, contrary to the documented "the update is reported as
requiring a spec-kit upgrade first" behavior (and re-nagging about the
upgrade on every subsequent run).
Compare the bundled version against the catalog version instead: any
older local copy is blocked with the upgrade-spec-kit guidance. This
subsumes the previous gate (inside the catalog > installed branch,
bundled <= installed implies bundled < catalog). A local copy at or
above the catalog version (dev/source checkouts) is still offered and
installed. Tests added for the intermediate-version block and the
newer-than-catalog install.
Refs #4345
Assisted-by: Claude Code (model: claude-fable-5, autonomous)
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 18a12b9 commit 002443a
2 files changed
Lines changed: 90 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | | - | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1777 | 1782 | | |
1778 | 1783 | | |
1779 | 1784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9274 | 9274 | | |
9275 | 9275 | | |
9276 | 9276 | | |
| 9277 | + | |
| 9278 | + | |
| 9279 | + | |
| 9280 | + | |
| 9281 | + | |
| 9282 | + | |
| 9283 | + | |
| 9284 | + | |
| 9285 | + | |
| 9286 | + | |
| 9287 | + | |
| 9288 | + | |
| 9289 | + | |
| 9290 | + | |
| 9291 | + | |
| 9292 | + | |
| 9293 | + | |
| 9294 | + | |
| 9295 | + | |
| 9296 | + | |
| 9297 | + | |
| 9298 | + | |
| 9299 | + | |
| 9300 | + | |
| 9301 | + | |
| 9302 | + | |
| 9303 | + | |
| 9304 | + | |
| 9305 | + | |
| 9306 | + | |
| 9307 | + | |
| 9308 | + | |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
| 9314 | + | |
| 9315 | + | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
| 9320 | + | |
| 9321 | + | |
| 9322 | + | |
| 9323 | + | |
| 9324 | + | |
| 9325 | + | |
| 9326 | + | |
| 9327 | + | |
| 9328 | + | |
| 9329 | + | |
| 9330 | + | |
| 9331 | + | |
| 9332 | + | |
| 9333 | + | |
| 9334 | + | |
| 9335 | + | |
| 9336 | + | |
| 9337 | + | |
| 9338 | + | |
| 9339 | + | |
| 9340 | + | |
| 9341 | + | |
| 9342 | + | |
| 9343 | + | |
| 9344 | + | |
| 9345 | + | |
| 9346 | + | |
| 9347 | + | |
| 9348 | + | |
| 9349 | + | |
| 9350 | + | |
| 9351 | + | |
| 9352 | + | |
| 9353 | + | |
| 9354 | + | |
| 9355 | + | |
| 9356 | + | |
| 9357 | + | |
| 9358 | + | |
| 9359 | + | |
| 9360 | + | |
9277 | 9361 | | |
9278 | 9362 | | |
9279 | 9363 | | |
| |||
0 commit comments