Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issues while executing the project #1

Open
sandeeptaz opened this issue Sep 3, 2018 · 3 comments
Open

Facing issues while executing the project #1

sandeeptaz opened this issue Sep 3, 2018 · 3 comments

Comments

@sandeeptaz
Copy link

Hi,
I tried to execute this command go build
But I am facing this error

  1. main.go:6:2: cannot find package "github.com/intrip/golang-load-balancer/common" in any of:
    /usr/lib/go-1.10/src/github.com/intrip/golang-load-balancer/common (from $GOROOT)

  2. main.go:7:2: cannot find package "github.com/spf13/viper" in any of:
    /usr/lib/go-1.10/src/github.com/spf13/viper (from $GOROOT)
    /root/work/src/github.com/spf13/viper (from $GOPATH)

Please help me how to solve it.
Thank you in advance.

@intrip
Copy link
Owner

intrip commented Sep 3, 2018

you're right, I think we need to update the docs.
The problem is that we use viper in this project, could you try to run go get github.com/spf13/viper ?

@sandeeptaz
Copy link
Author

Hi,
I tried with "go get github.com/spf13/viper"
Now the error related to viper is not coming now., but the other error is coming as given below

go build
main.go:6:2: cannot find package "github.com/intrip/golang-load-balancer/common" in any of:
/usr/local/go/src/github.com/intrip/golang-load-balancer/common (from $GOROOT)
/root/go/src/github.com/intrip/golang-load-balancer/common (from $GOPATH)

Thank you

@intrip
Copy link
Owner

intrip commented Sep 5, 2018

i think you may need to run go get https://github.com/intrip/golang-load-balancer perhaps
Looks like the project is not in your GOPATH and therefore we have this error

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

No branches or pull requests

2 participants