tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.55k stars 455 forks source link

godep path error #536

Closed davidxiao closed 6 years ago

davidxiao commented 7 years ago

Expected behavior

godep path should return GOPATH

Actual behavior

godep path Error: GO15VENDOREXPERIMENT is enabled and the vendor/ directory is not a valid Go workspace.

Steps to reproduce behavior

$godep path

godep version output

godep version godep v79 (darwin/amd64/go1.7.5)

go version output

go version go version go1.7.5 darwin/amd64

Contents of Godeps.json file

{ "ImportPath": "go-test", "GoVersion": "go1.7", "GodepVersion": "v79", "Deps": [ { "ImportPath": "github.com/Sirupsen/logrus", "Comment": "v0.11.2-1-g3f603f4", "Rev": "3f603f494d61c73457fb234161d8982b9f0f0b71" }, { "ImportPath": "github.com/fsnotify/fsnotify", "Comment": "v1.4.2-3-ga904159", "Rev": "a904159b9206978bb6d53fcc7a769e5cd726c737" }, ...... ] }

erreobi commented 7 years ago

I have the same problem

mhughes commented 7 years ago

I'm seeing the same issue

$ godep version godep v79 (windows/amd64/go1.8)

$ go version go version go1.8 windows/amd64

Additionally it seems godep is trying to find packages in Godeps/_workspace

$ godep get github.com/redacted/backend-go/hutch can't load package: package github.com/redacted/backend-go/hutch: cannot find package >"github.com/redacted/backend-go/hutch" in any of: C:\Go\src\github.com\redacted\backend-go\hutch (from $GOROOT) C:\Users\tute6\go\src\github.com\redacted\backend->go\Godeps_workspace\src\github.com\redacted\backend-go\hutch (from $GOPATH) godep: go exit status 1 godep: exit status 1

chrispassas commented 7 years ago

Same problem also.

fifths commented 7 years ago

$ godep version godep v79 (linux/amd64/go1.8.3)

/home/fifths/go/src/test/Godeps/_workspace/src/gopkg.in/mgo.v2/bson (from $GOPATH) godep: go exit status 1

same problem

ngauthier commented 7 years ago

I noticed you're on windows. I have the same problem and I'm on windows but I'm on the linux subsystem (WSL).

nick@DESKTOP-5C3NHDT:~/go/src/github.com/ngauthier/meetspace$ go version
go version go1.8.3 linux/amd64
nick@DESKTOP-5C3NHDT:~/go/src/github.com/ngauthier/meetspace$ godep version
godep v79 (linux/amd64/go1.8.3)
nick@DESKTOP-5C3NHDT:~/go/src/github.com/ngauthier/meetspace$ godep path
Error: GO15VENDOREXPERIMENT is enabled and the vendor/ directory is not a valid Go workspace.
nick@DESKTOP-5C3NHDT:~/go/src/github.com/ngauthier/meetspace$ ls -l vendor/
total 0
drwxrwxrwx 0 nick nick 512 Jun 12 12:16 github.com
drwxrwxrwx 0 nick nick 512 Jun 12 12:16 golang.org
nick@DESKTOP-5C3NHDT:~/go/src/github.com/ngauthier/meetspace$

Could it be something weird with windows permissions or paths?

tqoliver commented 7 years ago

$ godep version godep v79 (darwin/amd64/go1.8.1)

$ godep path Error: GO15VENDOREXPERIMENT is enabled and the vendor/ directory is not a valid Go workspace.

$ sw_vers ProductName: Mac OS X ProductVersion: 10.12.5 BuildVersion: 16F73

same problem

praveenkumar commented 7 years ago

Same issue :(

$ godep version
godep v79 (linux/amd64/go1.7.5)

$ godep path
Error: GO15VENDOREXPERIMENT is enabled and the vendor/ directory is not a valid Go workspace.
Skarlso commented 7 years ago

Yep, here too.

godep v79 (darwin/amd64/go1.8.3)

godep path
Error: GO15VENDOREXPERIMENT is enabled and the vendor/ directory is not a valid Go workspace.
javier-sanz commented 6 years ago

Same environment as @Skarlso and It happens to me as well.

alyandon commented 6 years ago

I hit this as well and since there hasn't been any commit activity on godep since February, I decided to move to using glide. It was extremely easy to set up for my particular projects - run glide init and commit the generated files.

schmohlio commented 6 years ago

same issue here: godep v79 (darwin/amd64/go1.9.1)

seems this tool is rather unusable?

ngauthier commented 6 years ago

FYI in my case my GOPATH wasn't properly set up, and my source was not actually on my GOPATH. I was a bit confused because I was still getting used to the windows subsystem for linux. So I recommend double-checking your GOPATH and pwd.

weichangdong commented 6 years ago

i have same problem

`$godep path

Error: GO15VENDOREXPERIMENT is enabled and the vendor/ directory is not a valid Go workspace.`

and `$godep save

godep: dirty working tree (please commit changes): /code/go/src/github.com/astaxie/beego godep: dirty working tree (please commit changes): /code/go/src/github.com/astaxie/beego/cache godep: dirty working tree (please commit changes): /code/go/src/github.com/astaxie/beego/cache/memcache godep: dirty working tree (please commit changes): /code/go/src/github.com/astaxie/beego/cache/redis godep: dirty working tree (please commit changes): /code/go/src/github.com/astaxie/beego/config`

so many errors,why so many person use it???? use glide is better than godep.

yyzybb537 commented 6 years ago

same issue here: godep v79 (linux/amd64/go1.7.3)

DnOberon commented 6 years ago

same issue here

XingjZhang commented 6 years ago

the same issue with me

freeformz commented 6 years ago

I am closing this issue because the repo is going to be archived.