Conversation
This broke in 10.4 npm@c209e98#r165769221
|
Yeah we'll definitely want a regression test for this in |
|
you assigned this to yourself. does that mean you're planning to fix it? Or, should I put up a PR with tests? also, so you have any thoughts/comments on moving the "showfix" stuff outside the loop and have it print from the |
This is a signal to the rest of the team that I'm reviewing the PR. |
I think this is a good iteration and it should be a separate PR. This quick fix for parsing opts should be easier to land since it's just one missing conditional and a test, leaving the optimization for a different PR. |
This broke in 10.4. Before 10.4
npm install --dry-run --jsonwould return JSON. After 10.4 it no longer returns JSON.c209e98#r165769221
Note: This is the smallest change and I didn't update any tests. Nor was I sure where to one. The fact that it broke means there was no test for this before.
If it was up to me I think I'd add a
summary.diff = []and push the diffs on there. And then only at the end where it outputssummary, if you want diff output to stdout then map oversummary.diff. That would put the checks for output in a single place.References
Fixeds #8565