Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

install: Use EXDEV aware move instead of rename #15901

Merged
merged 1 commit into from Mar 8, 2017
Merged

Conversation

iarna
Copy link
Contributor

@iarna iarna commented Mar 1, 2017

This will allow moving across devices and moving when filesystems don't
support renaming directories full of files.

Fixes: #9863 (hopefully)

@@ -1,16 +0,0 @@
'use strict'

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

@iarna
Copy link
Contributor Author

iarna commented Mar 6, 2017

@legodude17 Ack, I hit the wrong button and deleted your comment, but this is failing because I missed adding lib/utils/move.js. All the tests should already be updated.

@iarna iarna changed the base branch from latest to release-next March 6, 2017 22:45
@iarna iarna added this to the next milestone Mar 6, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 86.024% when pulling 251d230 on use-move into 47f77ad on release-next.

@legodude17
Copy link
Contributor

@iarna That's ok. By the way, where did appveyor go? I don't see it.

Copy link
Contributor

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑

This will allow moving across devices and moving when filesystems don't
support renaming directories full of files.

PR-URL: #15901
Credit: @iarna
Reviewed-By: @zkat
@zkat zkat merged commit b1e467b into release-next Mar 8, 2017
@zkat zkat deleted the use-move branch March 8, 2017 01:45
zkat pushed a commit that referenced this pull request Mar 9, 2017
This will allow moving across devices and moving when filesystems don't
support renaming directories full of files.

PR-URL: #15901
Credit: @iarna
Reviewed-By: @zkat
zkat pushed a commit that referenced this pull request Mar 10, 2017
This will allow moving across devices and moving when filesystems don't
support renaming directories full of files.

PR-URL: #15901
Credit: @iarna
Reviewed-By: @zkat
rastaman added a commit to rastaman/blueocean-plugin that referenced this pull request Oct 10, 2017
ediblecode added a commit to nice-digital/NICE.TopHat that referenced this pull request Nov 7, 2017
This is to use newer version of npm by default, to fix npm/npm#15901
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants