Skip to content

Merge conflicts while running copier update #1743

Answered by sisp
farhaan-shamsee asked this question in Q&A
Discussion options

You must be logged in to vote

I'm afraid the merge conflict cannot be avoided to the best of my knowledge because of the way Git's patching algorithm works, which Copier relies on internally.

Let's see what's happening in your example.

The change between generating a project with the first set of answers and the second set of answers without manual user changes is this:

 apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:
   - sample-app1.yaml
   - sample-app2.yaml
+  - sample-app3.yaml

The user's change after generating the project with the first set of answers is this:

 apiVersion: kustomize.config.k8s.io/v1beta1
 kind: Kustomization
 resources:
+  - my-app.yaml
   - sample-app1.yaml
   - sa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pawamoy
Comment options

Answer selected by farhaan-shamsee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants