-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
I'm Confused By Some of the Directions #530
Comments
Step 3: the intent is that you currently have a patched dependency (say Is there a way that this could have been written that would have made more sense to you? |
I agree that the instructions are unclear.
On the surface it looks like step 4 is deleting all patched dependencies (including the one we just deleted the patch definition for). If we skip step 3, what happens? If it has other patch definitions, do they still get applied? If it has no patch definitions left but we didn't delete the files, do the old patches remain in place? If yes to both, then Step 4 should probably read something like:
Somewhat relatedly, this behavior seems like a regression from 1.x which handled this more or less automatically. |
It's a different workflow. Not really a regression because that implies a bug. You are right in That's why this new workflow got introduced that uses the
Step 4 (
Yes, if there are other patch definitions left, they will be applied when you run
When there are no patch definitions left, the These are the steps I take when I want to remove a patch for
|
I meant regression in a more colloquial term, as in "worse than before".
Not sure I buy this argument, if the steps can be done manually, they can be done automatically too. I built scripts on top of 1.x to generate patches from a directory and apply them, if I need to regenerate the patches it reinstalls the unpatched module, creates the patch, then reapplies the patch. Not that much different to what is going on here except that I don't need to manually delete anything. So far I'm really not a fan of the changes with 2.x workflow, it's added more complexity for no benefit. |
It was extraordinarily complex in 1.x. Probably one of the biggest sources of bugs. There are lots of edge cases wrt installing/updating a single package (vs your entire project). It was a constant headache to support. You're welcome to script this in your own project, but it'll never be a one-size-fits-all sort of thing, so this probably won't be done in the main plugin. If anything, the more explicitly defined workflows make that possible. |
Verification
Which file do you have feedback about? (leave blank if not applicable)
docs/usage/recommended-workflows.md
Feedback
I don't understand what Step 3 in the Remove a Patch instructions means.
I don't know why you need to do Step 4. Is this for when you have a patch that requires other patches in dependencies of the patched module to work?
The text was updated successfully, but these errors were encountered: