Repository navigation
[release-1.10] fix(deps): enforce @backstage/* dependencies to be compatible with 1.49.4 - #140
Merged
Merged
Conversation
Add backstage:bump script to automate future Backstage dependency upgrades with tilde pinning (exact for @backstage/cli* packages) and deduplication. Pin @backstage/config-loader via resolutions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
kadel
approved these changes
Jul 17, 2026
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.



Summary
@backstage/*dependencies to Backstage release 1.49.4backstage:bumpscript to automate future upgrades with tilde pinning and deduplication@backstage/cli*packages to exact versions (no tilde)@backstage/config-loadervia resolutions to avoid version conflictsThis is a fix for https://redhat.atlassian.net/browse/RHDHBUGS-3474, addressing the problem that the rhdh-cli 1.10.7 picked up transitive dependencies from new Backstage versions. In the case of this issue a newer config-loader failed now. The root case was a failure in the theme package and new additional added validation in the config-loader.
This PR changes the dependencies of rhdh-cli from ^ to ~ so that the cli doesn't pick up newer versions of Backstage dependencies. I've reproduced the problem with the intelligent-assistant plugin:
reproduce.sh
release-1.10 (rhdh-cli 1.10.7) (f8f0788)
release-1.10 with just updated dependencies
release-1.10 with added dependencies cli-defaults, cli-module-build and cli-module-config as 0.1.0
Why 0.1.0 and not ~0.1.0? Because Backstage 1.50 is using 0.1.1, see https://github.com/backstage/versions/blob/main/v1/releases/1.49.4/manifest.json vs https://github.com/backstage/versions/blob/main/v1/releases/1.50.0/manifest.json