ember-cli-update: Error: dest already exists.
HEAD is now at fb844d2 2.17.0
Previous HEAD position was fb844d2 2.17.0
HEAD is now at 1bcb7a1 2.18.2
Previous HEAD position was 1bcb7a1 2.18.2
HEAD is now at fb844d2 2.17.0
Switched to a new branch 'c0807740-f491-11e8-b21e-cfbf6a666c9f'
Switched to branch 'upgrade-ember-cli-v2'
error: could not apply 312f897... message
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
Error: dest already exists.
at pathExists (/Users/samselikoff/.npm/_npx/48212/lib/node_modules/ember-cli-update/node_modules/fs-extra/lib/move/index.js:46:31)
at fn.apply.then.r (/Users/samselikoff/.npm/_npx/48212/lib/node_modules/ember-cli-update/node_modules/universalify/index.js:23:46)
at <anonymous>
Can anyone help me reproduce?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 31 (12 by maintainers)
OK I finally reproduced. @czosel Thank you!
Thanks to @czosel, should be fixed in v0.31.5.
@kellyselden I managed to get it working last night on one project, by commenting out my entire
.gitignore_globalfileIf it’s any use, the contents are:
Reopening, but I don’t know what the problem is. I’m trying to reproduce with tmp/ stuff.
@kellyselden This still seems to be an issue for me running 0.32.2 (also tried with 0.31.5)
Any idea what I might have missed? Or would you prefer I logged it as a new ticket?
Nice work!
I’m still finding it impossible to recreate. Trying to repro @gmkohler’s case gives me:
using your versions and branch name. I’m still at a loss… Can anyone here clone this repo and try to run the test suite? Maybe that will uncover something?
@kellyselden Yeah I had more code added to the .gitignore, index.js, and readme.md, that I had added before. They were getting changed and there was a merge conflict because the update wanted to put them in their default state. I would try to resolve conflicts picking my changes where appropriate and then tried to run the update again and resulting in having a merge conflict on those files again. So I decided to just copy the files somewhere else, try the update, pick all of the changes to make those files back to the default output, run the update again (which worked this time), and then put my code back in those files.
Hopefully this makes sense? Let me know if you have more questions.