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

dep init fails #357

Closed
gluplu opened this issue Mar 30, 2017 · 6 comments
Closed

dep init fails #357

gluplu opened this issue Mar 30, 2017 · 6 comments

Comments

@gluplu
Copy link

gluplu commented Mar 30, 2017

Hi guys,

I don't seem to be able to run dep init

(precise)babube@localhost:/go$ pwd
/home/babube/go
(precise)babube@localhost:
/go$ echo $GOPATH
/home/babube/go
(precise)babube@localhost:~/go$ dep init -v
determineProjectRoot: /home/babube/go not in any $GOPATH

@krisnova
Copy link
Contributor

This is really weird, what version of dep are you running?

@gd-liuzhihua
Copy link

Meet the same problem

@gluplu
Copy link
Author

gluplu commented Mar 30, 2017

I am a go newbie so I am unsure how to get the version of the installed packages in go ( and dep does not seem to provide a version option ), I just installed dep today with go get

@sztanpet
Copy link

start with https://golang.org/doc/code.html
you are using the wrong path, the GOPATH specifies the root of the workspace, your code is not supposed to be there but in a subdirectory under src

@gluplu
Copy link
Author

gluplu commented Mar 30, 2017

thanks it is working, I misunderstood the instructions to use dep

@gluplu gluplu closed this as completed Mar 30, 2017
@sdboyer
Copy link
Member

sdboyer commented Mar 30, 2017

For more details, see #313

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

No branches or pull requests

5 participants