-
Notifications
You must be signed in to change notification settings - Fork 1k
Chmod fails on Windows #774
Description
What version of Go (go version) and dep (git describe --tags) are you using?
Go 1.9-Beta1 and dep c79b048 on Windows 10 64-bit
What dep command did you run?
dep init
My projects are in D:/Work/. My GOPATH is also D:/Work.
The dependency causing issues is https://github.com/prometheus/procfs . It contains folders and files with @colon@ in the path: https://github.com/prometheus/procfs/tree/master/sysfs/fixtures.src/devices/pci0000_%40colon%40_00/0000_%40colon%40_00_%40colon%40_0d.0
What did you expect to see?
init should work correctly without errors.
What did you see instead?
init failed with this error:
safe write of manifest and lock: rename fallback failed: cannot rename C:\Users\francis\AppData\Local\Temp\dep915246291\vendor to D:\Work\src\F21\some_project\vendor: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying directory failed: copying file failed: chmod D:\Work\src\F21\some_project\vendor\github.com\prometheus\procfs\sysfs\fixtures.src\devices\pci0000_@colon@_00\0000_@colon@_00_@colon@_0d.0\ata4\host3\target3_@colon@_0_@colon@_0\3_@colon@_0_@colon@_0_@colon@_0\block\sdb\bcache\dirty_data: The system cannot find the path specified.
Inspecting the vendor folder of the project, I see that while D:\Work\src\F21\some_project\vendor\github.com\prometheus\procfs\sysfs\fixtures.src\devices\pci0000_@colon@_00\0000_@colon@_00_@colon@_0d.0\ata4\host3\target3_@colon@_0_@colon@_0\3_@colon@_0_@colon@_0_@colon@_0\block\sdb\bcache\dirty_data exists, a lot of folders and files under D:\Work\src\F21\some_project\vendor\github.com\prometheus\procfs\sysfs\fixtures.src are missing.