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
Yarn warnings wrongly treated as errors #2861
Conversation
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.
Nice update from the previous PR, and useful comments
I've outlined a bunch of questions/comments below, let me know how you get on or if you have any questions!
Changes:
Feedbacks ? |
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.
Nice tests; just need to think about naming tests the same way one would think about function names.
Changes:
Feedbacks? |
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.
LGTM insomnia-plugin-pdf-report
(has a warning) and insomnia-plugin-faker
(has no warning).
One note about changing console.log
to console.warn
but rest is good!
Hi everyone, I'm using Insomnia v2020.5.2 and i still have this issue: Error: Yarn error warning insomnia-plugin-aws-cognito-iam > @aws-amplify/auth > amazon-cognito-identity-js > buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
Wasn't it suppose to be fix in the last release? |
Hi @ThomasP1988, this was merged but not released with 2020.5.2. It will be included with the next release, likely early 2021. |
Ok thank you, I will wait until there then |
Still having an issue with this. I'm on the latest, 2021.1.1. Trying to install
|
This happens because the check was made really strict on purpose. It passes only if the message is shaped as follows: [Message format] From the fix: message.includes('no longer maintained') &&
message.includes('not recommended for usage') &&
message.includes('upgrade your dependencies') I could make it less strict but there were some concerns that could lead to false positives. EDIT: |
@nickroberts looking closer at the error you've got, this is actually an issue with a downstream package that Insomnia maintains, being consumed by an external plugin. This should be addressed by an open dependabot ticket and I'll look to get that through soon, you can track it in #3245. I'm also curious to know why you're installing In any case, a longer term solution for handling yarn responses is still useful. |
Changes:
if (stderr)
toif (stderr && !isFalsePositive(stderr))
isFalsePositive(std_err)
which takes std as input, split it using\r?\n
and runisDeprecatedDependencies(str)
on each line.isDeprecatedDependencies(str)
which checks if a given message is a plain warning,it's commented to better explains what it does.
Feedbacks ?
It resolves #2836