-
Notifications
You must be signed in to change notification settings - Fork 33
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
On applying a patch, patch conflicts should allow for interactive resolution #76
Comments
make patch
should collect patch conflicts and allow for patch resolution instead of exiting
By adding this feature, rebasing (e.g. changing the upstream of a chart from something like |
Resolving this issue will help resolve #31, since rebasing would be natively supported in the scripts with this change. |
The fundamental blocker for this issue is that we currently do not store the original base that was used to produce the patch. As a result, when reading information from a Why does this change if we have the original base?If we had the original base used to produce the patch, we could diff the new base from the old base. This would allow us to identify all single-line modifications made (e.g. adds or removals) from old->new Via the original patch file, we also have all single-line modifications made from old->patched. Therefore, we can perform a Weave Merge between the two sets of single-line modifications to produce the correct conflict file. As a result, I'm closing out this issue in favor of #31 since the only two ways I can think to resolve this are:
|
On running a
make prepare
today, if applying a patch fails we just error out.Instead, running
make prepare
should be an interactive process where, if a three way patch between the upstream, scripts, and the user is observed, the user should have the ability to remediate the errors before continuing a the call, similar to the behavior exhibited by a git rebase on encountering conflicts.make charts
, which usesmake prepare
under the hood, should also specify a non-interactive call ofmake prepare
, which will fail out if it encounters any patches.The text was updated successfully, but these errors were encountered: