-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: use hasProxyTo to find correct uplink for tarballs #1644
Conversation
This test reproduces #1642
Codecov Report
@@ Coverage Diff @@
## master #1644 +/- ##
==========================================
+ Coverage 84.9% 84.92% +0.02%
==========================================
Files 47 47
Lines 2477 2481 +4
Branches 571 572 +1
==========================================
+ Hits 2103 2107 +4
Misses 370 370
Partials 4 4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like what I see 👍 but need to run more test, thank u for being so detailed.
Let me know if there's anything you need from me for that 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 such a pleasure review this, thanks @Beanow , great stuff.
There is an interesting variant you should be aware
following your same example, if there is this scenario, where you can define multiple proxies for one package, the outcome of this would be no cache since both proxies will be true and the last one in the list remains, which would be If you try
switching the Just keep this on mind. |
Glad to hear that 😄 thanks
That is interesting! It's probably best to write some of these scenarios out and agree on what they should do first. For instance, both And what about when the urls are different? |
Agree, for now I guess the best is:
It is fue first time someone went so far with the conf :) |
🤖This thread has been automatically locked 🔒 since there has not been any recent activity after it was closed. |
Attempting to fix #1642
Reverting the fix commit will fail the test. However I'm not confident we can ignore the
isUplinkValid
check in all situations. The test is also a bit smelly, but can be used as reference.Feel free to edit as needed.