qur / withmock

Automatic Go package mock generation tool
Other
71 stars 9 forks source link

Withmock does not currently support windows #54

Open haagarwa opened 8 years ago

haagarwa commented 8 years ago

Hi, I recently installed withmock.After installation I got lots of errors in the "qur/withmock/scenarios" directory. The type of errors were like "C source files not allowed when not using cgo or SWIG: lib.c", so I removed such directories. And then I tried running withmock but faced an error like below ERROR: symlink D:src\github.com\golang\mock\gomock\call.go C:\Users\xyz\AppData\Local\Temp\withmock915089311\path\src\github.com\golang\mock\gomock\call.go: A required privilege is not held by the client. Please help me to get to know what could be the reason for this failure.Is it like I need to use withmock with older version of golang.

qur commented 8 years ago

At the moment withmock is using symbolic links to reduce the amount of data copied. Unfortunately this appears to not be working on Windows, and I don't have a Windows development environment.

There may also be other aspects of the behaviour that implicitly favour unix based systems ...

haagarwa commented 8 years ago

Thank you for the information. I am just wondering if you have any plans to support it for windows?