-
Notifications
You must be signed in to change notification settings - Fork 205
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
UX optimization: reversed patch == hung fetch... #3052
Comments
I agree, we shouldn't be hanging on interactive input like this. Do you know what these flags do? I think we essentially want the default behavior (i.e. don't automatically reverse it for us) but when it detects this case, it should just error. From this description here, I assume
This is fairly easy to do but has a performance hit as patches are often used to patch large repos. We'd have to move patching to it's own target so it can have a different building description. This means we have to copy the files into a temp directory, and adding more intermediate targets means we have to repeat this step for each target. |
I'd use |
Yeah, that sounds like the right thing to do. Which build defs are you experiencing this with? There are a number of places where we patch things in Please. |
d5/tengo#439, for reference |
Here's a new variation on an old theme: patching a file that already exists. I even run into this stuck issue when performing a
With the
and the patch:
Which has made merging #3053 important, imo. |
This is embarrassing, and it took entirely too long to figure out, IMO, but I had a custom patch reversed (i.e.,
diff -u new_file old_file
). Behind the scenespatch
was asking:Could the behavior of patch be tweaked to pass the
-f
or-N
(or maybe-t
, but I think this would be problematic to debug for different reasons)? I'd rather have things fail fast than hang on user input and be hung/stalled. Needless to say, I thought this was a VPN or WiFi issue while flying, not something stuck on user input because it was hung "Fetching". From a UX perspective, having the output updated to be "Patching" vs "Fetching" would've also been a sufficient clue.Feel free to close, but I think this would be an easy UX win when someone does something dumb (i.e., flying and hacking while sleep-deprived).
The text was updated successfully, but these errors were encountered: