Skip to content
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

Minit doesn't work across different devices on Windows #42

Closed
aadsm opened this issue Jun 22, 2013 · 3 comments
Closed

Minit doesn't work across different devices on Windows #42

aadsm opened this issue Jun 22, 2013 · 3 comments

Comments

@aadsm
Copy link
Collaborator

aadsm commented Jun 22, 2013

If minit is installed in one device and is used in another device it tries to move files between them and that's not possible with node.js's fs.rename.

> minit create:app -n hello
Error: Can't move "C:\\Users\\user\\AppData\\Local\\Temp\\build\\app\\hello" to
 "D:\\dev\\zone_workspace\\node\\site-iii\\hello" because EXDEV, rename 'C:\User
s\user\AppData\Local\Temp\build\app\hello'

Discussion at node.js about this topic: nodejs/node-v0.x-archive#2703

I believe we're using qfs.move for this (https://github.com/montagejs/minit/blob/master/lib/template-base.js#L157)? It probably should be fixed at that level @kriskowal ?

@kriskowal
Copy link
Member

Yes, this could be fixed at Q-IO by turning move into a copyTree / removeTree operation, and renaming the current move to rename.

@kriskowal
Copy link
Member

Upgrading Q-IO to ~1.9.0 should address the problem.

@francoisfrisch
Copy link
Contributor

Fixed by #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants