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

Error during image building #35

Closed
hutger opened this issue Oct 31, 2017 · 9 comments
Closed

Error during image building #35

hutger opened this issue Oct 31, 2017 · 9 comments

Comments

@hutger
Copy link

hutger commented Oct 31, 2017

Hi,
I've got the error below whenever I execute the command:

go install -tags rethinkdb github.com/tinode/chat/tinode-db
/go/src/github.com/tinode/chat/server/db/rethinkdb/adapter.go:16:2: cannot find package "gopkg.in/gorethink/gorethink.v2" in any of:
/usr/local/go/src/gopkg.in/gorethink/gorethink.v2 (from $GOROOT)
/go/src/gopkg.in/gorethink/gorethink.v2 (from $GOPATH)

Do you have some clue about what's generating that error?

@or-else
Copy link
Contributor

or-else commented Oct 31, 2017

What's your go version?

go version

@or-else
Copy link
Contributor

or-else commented Oct 31, 2017

Did you run go get -u?

@hutger
Copy link
Author

hutger commented Oct 31, 2017 via email

@hutger
Copy link
Author

hutger commented Oct 31, 2017 via email

@or-else
Copy link
Contributor

or-else commented Oct 31, 2017

Your go setup fails to find versioned third-party package although it's clearly there: http://gopkg.in/gorethink/gorethink.v2

Something is wrong with your setup. What's you $GOROOT and $GOPATH? Is your project located at $GOROOT/src?

What do you get for git remote -v?

Btw, when you run go get -u you can't possibly get the same error. What's the exact error message when you run it?

@hutger
Copy link
Author

hutger commented Oct 31, 2017

I'm using the most current golang docker image. The default $GOROOT is blank and $GOPATH is /go.

root@ccfe8eb6a013:/go/src# go get -u github.com/tinode/chat/tinode-db
root@ccfe8eb6a013:/go/src# go install -tags rethinkdb github.com/tinode/chat/tinode-db
github.com/tinode/chat/server/db/rethinkdb/adapter.go:16:2: cannot find package "gopkg.in/gorethink/gorethink.v2" in any of:
/usr/local/go/src/gopkg.in/gorethink/gorethink.v2 (from $GOROOT)
/go/src/gopkg.in/gorethink/gorethink.v2 (from $GOPATH)

root@ccfe8eb6a013:/go/src# git remote -v
fatal: Not a git repository (or any of the parent directories): .git

@or-else
Copy link
Contributor

or-else commented Oct 31, 2017

Fixed #36. Thank you for the bug report!

@or-else
Copy link
Contributor

or-else commented Nov 1, 2017

No update, so I assume it's indeed fixed. Closing.

@or-else or-else closed this as completed Nov 1, 2017
@hutger
Copy link
Author

hutger commented Nov 1, 2017

Sorry, I thought you had already closed the issue. The problem is fixed indeed. Many thanks.

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