golang / dep

Go dependency management tool experiment (deprecated)
https://golang.github.io/dep/
BSD 3-Clause "New" or "Revised" License
12.86k stars 1.05k forks source link

Not able to run go project- unexpected directory layout: #2199

Closed scrumteamravens closed 3 years ago

scrumteamravens commented 4 years ago

I am getting below issue unexpected directory layout: import path: gopkg.in/yaml.v2 root: C:\Users\kants3\go\src dir: C:\Users\kants3\go\src\github.com\k8stests\k8stests\vendor\gopkg.in\yaml.v2 expand root: C:\Users\kants3\go\src expand dir: C:\Users\kants3\go\src\github.com\k8stests\k8stests\vendor\gopkg.in\yaml.v2 separator: \

when i am trying with dep i am getting above exception. OS - windows but when i try pulling dependencies using go get it worked fine for me.
Hence suspecting some issue with path setting or dep issue.

What version of dep are you using (dep version)?

version : devel build date : git hash : go version : go1.11.8 go compiler : gc platform : windows/amd64 features : ImportDuringSolve=false

If you installed dep via go get, report the version instead with cd $GOPATH/src/github.com/golang/dep && git describe --tags

dep ensure

go env : set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\kants3\AppData\Local\go-build set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=C:\Users\kants3\go\src\github.com\k8stests\k8stests;C:\Users\kants3\go set GOPROXY= set GORACE= set GOROOT=C:\Go set GOTMPDIR= set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set GCCGO=gccgo set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\kants3\AppData\Local\Temp\go-build228787150=/tmp/go-build -gno-record-gcc-switches

mvdan commented 3 years ago

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!