uplink not working for transitive dependency #2346
Unanswered
haquezameer
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@juanpicado any thoughts on this? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following config:
I use verdaccio for my E2E tests. I set
@scope:registry
tolocalhost
(where verdaccio server is running).In my app I use package from
@scope/package1
which depends on a version1.7.0
of@scope/package2
. All current versions of@scope/package2
are available in the locally running verdaccio registry when tests are run, and@scope/package1
and its dependencies are supposed to be downloaded from uplink as configured in the above snipped.For our case, lets say the current version available for
@scope/package2
in the locally running verdaccio registry is1.8.0
. Due to this when tests are run and@scope/package1
looks for@scope/package2
version1.7.0
in the locally running verdaccio instance, its not able to find it and tests fail.My concern is why does
@scope/pacakge1
looks for@scope/package2
version1.7.0
in the local running instance and not go to the github uplink? The@scope/package1
package is itself being installed from the uplink, then why are its dependencies also not installed from the uplink?TLDR:
App depends on
@scope/package1
and@scope/package2
.@scope/package1
also depends on@scope/package2
.@scope/package2
is stored in locally running registry but only the current version. Uplink is configured for@scope/package1
as its never available in the locally running registry. When a request to installpacakge1
is made, it tries in localhost and then goes to uplink. Now, sincepackage1
is being downloaded from the uplink, I want its dependencies also to be installed from uplink and not looked for in the locally running instance.Is it possible?
Beta Was this translation helpful? Give feedback.
All reactions