-
Notifications
You must be signed in to change notification settings - Fork 1k
"dep ensure -add" fails on WSL (Bash on Windows on Linux) with "failed to strip vendor" error #1091
Comments
Could you try that again and check the permissions on the file kept on disk? This could boil down to a file that's being created in a read-only state... |
It's using default permissions, cloned directly to the home directory. Do I need to set something special? Sent from my BlackBerry 10 smartphone.
|
You shouldn't need to do anything. But is One other reason would be if the file descriptor wasn't closed when dep tried to remove the directory, but |
here's the
I ran the same command on Windows, directly, and it worked. Not sure why it fails on WSL. |
I was asking specifically about the files that weren't deleted but should've been like:
|
They don't exist. I post tree of directory in the initial post:
|
Very weird. Is this behavior always happening for you on WSL? |
Yes, I tried many times but no avail. |
Can you try this in a different GOPATH? |
I can't right now, but will do. Will |
Sure. I'm just trying to figure out what's the reason. A different directory might give us a hint. |
@ibrasho I changed $GOPATH to
Here's the error:
I cleaned Additional details:
|
I'm having a similar problem with WSL, and precisely with the same package (
Additional details:
My env (running dep version v0.3.0):
|
That folder ( |
I'm seeing this consistently on WSL as well, when running dep ensure I get the following issue: Checking the folder lists "github.com/pierrec/lz4/fuzz/corpus" which is imported in Shopify/sarama/message.go. I'm unable to resolve this on WSL/windows |
@xmudrii @iuriaranda @eirikbell Could please check #1136? Quoting @redbaron:
|
@ibrasho I'm running on Insider Preview right now and had to use |
Glad to hear that. I'll close this issue then. If you face any other issues, don't hesitate to report them. |
FYI: This issue should be related to golang/go#20841 . Or if you want to avoid this error without upgrading Windows 10, you must apply patch like:
|
I've also bee hitting this issue in WSL even with the latest Windows updates, by sharing the The workaround here is to set |
What version of
dep
are you using (dep version
)?dep
was obtained usinggo get
.dep version
:cd $GOPATH/src/github.com/golang/dep && git describe --tags
:What
dep
command did you run?dep ensure -v -add github.com/spf13/viper
What did you expect to see?
Nothing — dependency successfully added.
What did you see instead?
The following error:
I tried removing directories manually and re-running the command but it doesn't help. I also tried re-running the command but it returned the same error:
tree /tmp/dep696529382 -d
returns the following:Additional information
This is my attempt to vendor
github.com/spf13/viper
onkubicorn
project. I'm runningdep
on WSL, with everything updated as well as with Go 1.9.go version
:go env
:lsb_release -a
:uname -a
:Running WSL on Windows 10 Pro, 64-bit, Build 1703 (Creators Update).
Output of
dep hash-inputs
:Feel free to rename issue to something more appropriate.
The text was updated successfully, but these errors were encountered: