Skip to content

fix(components): preserve stack version on update when no version flag given#427

Merged
gaelL merged 3 commits intodevelopfrom
gl_fix_cmp_version
Apr 21, 2026
Merged

fix(components): preserve stack version on update when no version flag given#427
gaelL merged 3 commits intodevelopfrom
gl_fix_cmp_version

Conversation

@gaelL
Copy link
Copy Markdown
Member

@gaelL gaelL commented Apr 21, 2026

fix(components): preserve stack version on update when no version flag given
cy component update without --stack-branch/--stack-tag/--stack-commit-hash
was silently switching the component to the catalog default branch instead
of keeping the current version.

Fix: resolve the current component's ServiceCatalog.Version against the
stack version list and pass it through; fall back to catalog default only
if the version can no longer be found.

Add e2e regression test TestUpdatePreservesStackVersionWhenNotSpecified.

gaelL added 3 commits April 21, 2026 10:21
…g given

cy component update without --stack-branch/--stack-tag/--stack-commit-hash
was silently switching the component to the catalog default branch instead
of keeping the current version.

Fix: resolve the current component's ServiceCatalog.Version against the
stack version list and pass it through; fall back to catalog default only
if the version can no longer be found.

Add e2e regression test TestUpdatePreservesStackVersionWhenNotSpecified.
@gaelL gaelL merged commit 810bd07 into develop Apr 21, 2026
1 check passed
@gaelL gaelL deleted the gl_fix_cmp_version branch April 21, 2026 08:31
@gaelL gaelL restored the gl_fix_cmp_version branch April 21, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant