-
Notifications
You must be signed in to change notification settings - Fork 3k
install: Use EXDEV aware move instead of rename #15901
Conversation
@@ -1,16 +0,0 @@ | |||
'use strict' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth leaving this as an empty file so it doesn't break anyone using:
# Fix bug https://github.com/npm/npm/issues/9863
RUN cd $(npm root -g)/npm \
&& npm install fs-extra \
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm grumpy about it but yeah, since this is fixing things for exactly the folks who would have had that patch, we probably shouldn't break the work around. =D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll remove the hack w/ npm@5, since it's a breaking bump anyway.
@legodude17 Ack, I hit the wrong button and deleted your comment, but this is failing because I missed adding |
@iarna That's ok. By the way, where did appveyor go? I don't see it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐑
This is to use newer version of npm by default, to fix npm/npm#15901
This will allow moving across devices and moving when filesystems don't
support renaming directories full of files.
Fixes: #9863 (hopefully)