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

Running dep init in $GOPATH/src returns misleading error #471

Closed
dcheney-atlassian opened this issue Apr 28, 2017 · 2 comments
Closed

Running dep init in $GOPATH/src returns misleading error #471

dcheney-atlassian opened this issue Apr 28, 2017 · 2 comments

Comments

@dcheney-atlassian
Copy link

Repro

% env GOPATH=$(mktemp -d) bash -c 'mkdir $GOPATH/src && cd $GOPATH/src && dep init'
determineProjectRoot: /tmp/tmp.P8wqCD27Aj/src not in any $GOPATH

The error is misleading, /tmp/tmp.P8wqCD27Aj/src is $GOPATH/src

@sdboyer
Copy link
Member

sdboyer commented Apr 28, 2017

Yeah - this is the same basic use case as raised in #313. Until we get to actually supporting it properly (#417), it deserves its own special failure message.

@nijaru
Copy link

nijaru commented May 1, 2017

I'll take a look over 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