fix: reject bundle version changes during install - #4477
Open
rksharma-owg wants to merge 1 commit into
Open
Conversation
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.
Closes #4434
Description
A normal
bundle installtreated an existing bundle as satisfied by component ID alone, then rewrote the installed-bundle record to a newer version while leaving owned components unchanged. This guard rejects a version-changing normal install before any primitive work and directs users tospecify bundle update, which refreshes components before updating provenance. Same-version installs remain idempotent.Testing
uv run specify --helpgit diff --checkThe full suite ran as 7,522 passed, 195 skipped, and 11 unrelated pre-existing environment/platform failures (PowerShell launcher and composed-template parity tests).
AI Disclosure
This PR was written with assistance from ChatGPT, which researched the issue, implemented the focused guard and regression test, and ran validation under the contributor account.