Dep: Cannot run `dep ensure` in working directories linking to project directories under GOPATH

Created on 10 Jun 2017  路  5Comments  路  Source: golang/dep

$ go version
go version go1.8.1 darwin/amd64

$ git -C $GOPATH/src/github.com/golang/dep describe --tags
v0.1.0-104-g17b6c94

Hi, thanks for development of the great tool.

I want to run dep ensure in working directories which link to real project directories under GOPATH.
The current dep implementation doesn't allow it.

For example, I want to run dep ensure at /home/username/someproject in the below directory structure.

# A real project directory under GOPATH.
/home/username/go/src/github.com/username/someproject

# A working directory as a symbolic link to the above directory.
/home/username/someproject -> /home/username/go/src/github.com/username/someproject

Would you allow to run dep ensure in such symbolic linked working directories?
I consider there are no problems even if it is allowed.

bug ensure

Most helpful comment

Any way to help you ease the pain?

All 5 comments

I made PR #741 which solves this issue. I would happy if you could check it!

Having the same exact issue. Currently waiting for #812, but that PR haven't had any updates for the last 20 days.

yeah, tbh, i've been avoiding it - reviewing symlink-related PRs is the single fastest way to drain me of soul and energy. i've been avoiding it :( maybe, hopefully, soon, i'll have some window...

Any way to help you ease the pain?

That's a no then.

Was this page helpful?
0 / 5 - 0 ratings