Open hsluoyz opened 7 years ago
Update:
I found an much easier way to reproduce this bug, just run glide list
would be enough:
C:\GoPath\src\github.com\coreos\etcd>glide list
[ERROR] Failed to build an initial list of packages to scan: open C:\GoPath\src\github.com\coreos\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\
cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\
etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd: Access is denied.
[ERROR] Error listing dependencies: open C:\GoPath\src\github.com\coreos\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etc
d\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cmd\etcd\cm
d\etcd\cmd\etcd\cmd\etcd\cmd\etcd: Access is denied.
I'm trying to glide get a package for repo: https://github.com/coreos/etcd on Windows 10 x64 but encounters the error:
I guess the cause is that etcd repo has a symbolic link inside its
cmd
directory, which links to the repo root. So it becomes an endless loop and glide doesn't handle it well. So it cannot find a file inside this endless path.BTW, I'm using Git for Windows and have enabled the Symbolic-Links feature. In the page it said:
So I doubt maybe glide on Windows is one of the programs that do not understand Windows symbolic links?
The symbolic link on Windows looks like this:
There's my
glide get
command.