Have security alerts about yarn.lock find the root cause/solution #1814
Labels
F: dependabot-alerts
F: security-updates 🔐
Issues specific to security updates
L: javascript:yarn
npm packages via yarn
T: feature-request
Requests for new features
Hey everyone, I hope you're well. In the case I ran into today, I think this idea would be make for a much better flow with Dependabot. :)
My situation:
yarn.lock
.yarn.lock
or add its recommended sub-sub-dependency version bump topackage.json
. The former doesn't seem appropriate and the latter may not be enough for an automatic fix to succeed—for example, if more than one sub-dependency needs to simultaneously be upgraded due to compatibility issues, not just the one Dependabot is singling out.* I can't directly verify this comment from @hmarr, because in my use case there's an unrelated problem where Dependabot can't automatically fix due to some unspecified conflict, but when Dependabot found something it didn't like in
yarn.lock
that was not directly mentioned inpackage.json
, the suggested fix did seem to be directly toyarn.lock
given the example format it displays:Translated into specifics:
clean-css
, a sub-dependency ofpug
, needed a bump (ignoreacorn
for the moment, since that doesn't currently have any resolution that I know of, and Dependabot doesn't currently make it clear what the compatibility conflict might be.)clean-css
, whatever it would be, cannot be done due to some unspecified compatibility conflict.pug
dependency inpackage.json
, because that resolves theclean-css
bump in a way that's free from compatibility conflict. It would be great if this is what Dependabot figured out, reported, and suggested.(In the case that it can't resolve the conflict automatically, it would be great to divulge the conflict it's discovered, which is what #1340 is about. In this case, that would help narrow down what needs to be done by
pug
to successfully bumpacorn
. With the above implemented, once such a bump were successful inpug
and a new version released with it, Dependabot running on my project would find the new version ofpug
and suggest bumping it, instead of delivering a conflict report.)The text was updated successfully, but these errors were encountered: