fix: correct support for workspace:^ and backstage:^ dependency version resolution.#103
Merged
davidfestal merged 1 commit intomainfrom Apr 27, 2026
Merged
Conversation
8612f53 to
aab722f
Compare
…on resolution. Signed-off-by: David Festal <dfestal@redhat.com>
aab722f to
87613a2
Compare
|
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.



Fix
workspace:^andbackstage:^dependency version resolutionSummary
Fixes how the dynamic plugin export resolves
workspace:^andbackstage:^version specs in plugin dependencies, which previously produced incorrect or unresolvable versions in the exportedpackage.json.Changes
New
backstageVersionmodule (src/lib/backstageVersion.ts): Adds utilities to resolvebackstage:^version specs to concrete versions by fetching the Backstage release manifest (via@backstage/release-manifests). Replicates the logic from the Backstage Yarn plugin'sbeforeWorkspacePackinghook. SupportsBACKSTAGE_MANIFEST_FILEandBACKSTAGE_VERSIONS_BASE_URLenvironment variables for offline / custom manifest usage.Fix
workspace:^range specifier handling (backend.ts): The^/~range prefix was incorrectly applied inside the monorepo-package resolution branch, meaning it was lost in certain code paths. Moves the range-prefix prepending to run after all resolution branches so it is applied consistently.Add
backstage:^protocol support (backend.ts): When a dependency uses thebackstage:^protocol, it is now resolved to a concrete^<version>using the release manifest, with a log message showing the resolution.Add
@backstage/release-manifestsas a production dependency.Minor: simplify the
binfield inpackage.jsonto a plain string.