Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep init: doesn't recognise symlinked project #330

Closed
klrkdekira opened this issue Mar 14, 2017 · 3 comments
Closed

dep init: doesn't recognise symlinked project #330

klrkdekira opened this issue Mar 14, 2017 · 3 comments

Comments

@klrkdekira
Copy link

I'm not sure if this is a bug, but fixing this will be a great quality of life improvement.

What version of Go are you using (go version)?
go version go1.8 darwin/amd64

What operating system and processor architecture are you using?
macOS Sierra 10.12.3 (darwin amd64)

What did you do?
GOPATH is set at ~/gopath

I was working on a project that accessed via a symlink as provided below.

Full GOPATH

~/gopath/src/github.com/klrkdekira/myproject

Symlinked path

$ pwd
~/myproject

What did you expect to see?
dep init works.

What did you see instead?
This.
screen shot 2017-03-14 at 14 57 46

After invoking cd -P it just works.
screen shot 2017-03-14 at 14 58 27

@sdboyer
Copy link
Member

sdboyer commented Mar 14, 2017

Symlinks are tough - just in general, but also in particular because we have limited wiggle room to deal with them when a) the go toolchain already has strong opinions about them and b) we're still so sensitive to GOPATH for naming (e.g. #313).

Still, we have #247 going, which I hope we can merge soon, at least in the spirit of experimentation.

@mingrammer
Copy link
Contributor

I have a same problem

@sdboyer
Copy link
Member

sdboyer commented Apr 11, 2017

#247 is merged, so closing this :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants