Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(arborist): use the sourceReference root rather than the node root for overrides #5227

Merged
merged 1 commit into from Aug 1, 2022

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Jul 28, 2022

when we examine override references, if we look at only this.from.root.package the root could actually be a virtual one. in order to ensure we resolve references from the real root, we instead need to look at this.from.sourceReference.root.package to get the correct value.

closes #4395

… for overrides

when we examine override references, if we look at only `this.from.root.package` the root could actually be a virtual one. in order to ensure we resolve references from the real root, we instead need to look at `this.from.sourceReference.root.package` to get the correct value.

closes #4395
@nlf nlf merged commit 47cc95d into latest Aug 1, 2022
@nlf nlf deleted the nlf/fix-override-ref-with-virtual-root branch August 1, 2022 18:11
@nlf nlf mentioned this pull request Aug 3, 2022
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.

[BUG] certain combinations of $ref overrides cause "ERR! Unable to resolve reference" from arborist
2 participants