-
Notifications
You must be signed in to change notification settings - Fork 1k
Unable to use dep inside Bash for Windows #1136
Comments
ref: #1114 |
I also ran into this issue today. A colleague spelunked a bit and found a likely culprit. Namely that TMPDIR points to /tmp which is on a different mountpoint in WSL versus my home directory. What this means is that during dep ensure there is a step where renaming a directory happens. Because of the cross device locations, this happens as a full copy with a delete. The delete the fails (for reasons that we're not 100% sure of). We think it might be because something has a handle open to a file (perhaps because directory enumeration is happening). We worked around this issue by setting TMPDIR to ~/tmp |
Note: this seems to be a manifestation of golang/go#20841 Namely that os.RemoveAll ends up failing, which then causes fs.renameByCopy to fail. |
That issue bottoms out at microsoft/WSL#2077 (comment). According to that issue this is fixed in the Fall Creator's Update. |
@julien10 , I am using it with Bash on Windows successfully , you need to subscribe to Insiders Preview builds in your update settings to make it work or wait for Fall Creator's Update. Either way, there is nothing |
Hello,
I'm having trouble using dep ensure inside of the Bash for Windows.
What version of
dep
are you using (dep version
)?v0.3.0-250-g062d2d0
What
dep
command did you run?dep ensure
What did you expect to see?
all my dependencies synced
What did you see instead?
or
Thanks a lot
The text was updated successfully, but these errors were encountered: