patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Add a way to force error for patch file version mismatch

Open jraoult opened this issue 3 years ago • 2 comments

While locally the warning for this case is a nice touch, in CI we run an automated dependency management bot. We would love to see patch-package blocking the auto-merge to let us intervene and update the patch/check that everything is right in the same PR instead of coming back later to create a new PR just for the patch update.

Following the existing convention, it could be a command-line argument like --error-on-warning. I realise this might be a little niche but would you consider this?

By the way thanks for this amazing tool, this is so helpful and lovely to use 👍

jraoult avatar May 12 '21 10:05 jraoult

I don't think this is niche. I just landed on this issue looking for the exact same thing. It's always a waste of CI resources if we want to keep versions matching.

alfaproject avatar Sep 02 '21 13:09 alfaproject

This would be a great feature to add! (Replying to bump this thread)

Edit: Sorry, I realize now that commenting to bump is annoying and not helpful.

charkour avatar May 09 '22 15:05 charkour

Released in 6.5.0

ds300 avatar Oct 25 '22 19:10 ds300