-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(package-rules): warn for depName fallback #28547
Conversation
@nabeelsaabna do you want to first check the hosted app for these types of info messages which are our fault? Or merge, upgrade, and fix warnings as we find them? |
What do you mean by "which are our fault" ? |
There might be some built-in preset packageRules which cause a high volume of these messages, such as matchPackageNames=node |
we should validate our internal presets and ensure there's no warning log call? |
Not too easy to do - requires not just resolution but also data to test against. Also, any rule with matchPackageNames could in theory trigger a warning with the right inputs. The question is whether it's common instead of convoluted use cases |
overall there are ~6% of repositories with the message On a different note, maybe its time to print/capture shallow config |
6% seems pretty high for manual, can you share some examples (which aren't confidential) so I can understand better? |
3952 unique repositories in the last 7 days, will check for more details |
@nabeelsaabna I was wondering if any of our workarounds might hit this, e.g. the depName is 'node' or 'java' but the packageName is not |
Related: we are going to remove the depName fallback in v38, which will be released soon |
@nabeelsaabna should we merge and put it live? |
Yes. |
🎉 This PR is included in version 37.316.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes
Log warning when depName fallback is used in packageRules
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: