Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Unable to compile package #1

Open
roman-shuhov opened this issue Apr 7, 2016 · 5 comments
Open

Unable to compile package #1

roman-shuhov opened this issue Apr 7, 2016 · 5 comments

Comments

@roman-shuhov
Copy link

Could you please give more details on how to compile this repository with Go? "go install ./..." complains about broken dependencies and doesn't work even if i do "go get %" for all of them...

@crewjam
Copy link
Owner

crewjam commented Apr 7, 2016

Any chance you can paste the output of go install ./... ?

@roman-shuhov
Copy link
Author

I stuck here

github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/loader14.go:25:2: no buildable Go source files in /projects/go/src/golang.org/x/tools/go/types
github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/types/api.go:31:2: cannot find package "golang.org/x/tools/go/exact" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/golang.org/x/tools/go/exact (from $GOROOT)
    /projects/go/src/golang.org/x/tools/go/exact (from $GOPATH)
github.com/aws/aws-sdk-go/awstesting/assert.go:16:2: cannot find package "github.com/stretchr/testify/assert" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/github.com/stretchr/testify/assert (from $GOROOT)
    /projects/go/src/github.com/stretchr/testify/assert (from $GOPATH)
github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go:13:2: cannot find package "github.com/lsegal/gucumber" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/github.com/lsegal/gucumber (from $GOROOT)
    /projects/go/src/github.com/lsegal/gucumber (from $GOPATH)

I'm not a go developer at all, so it's probably a stupid question, but I really appreciate any help here.
Btw, really great article, you covered a lot of ETCD's edge cases.

@mumoshu
Copy link

mumoshu commented May 5, 2016

@roman-shuhov Hi, I have just managed to build it. I believe you basically have to run go get <missing package> one by one until go install ./... succeeds.

I was too lazy to do that and ended up with a series of glide commands and my ruby one-liners.
See https://gist.github.com/mumoshu/e0088578bf67ae1b4cb2632791553822 for full instructions.

@crewjam Btw, I'm really impressed to your blog and code! Keep up the great work 👍

@crewjam
Copy link
Owner

crewjam commented May 6, 2016

Thanks to you both, and I'm sorry that I wasn't able to be more responsive earlier. I'm virtually certain that the issue here is a GOPATH/GOROOT issue. What I can tell you is that go install ./... works for me. Is that plausible?

Getting the golang compiler set up, particularly for those unfamiliar is tricky. Would a binary release have helped you?

@crewjam crewjam reopened this May 6, 2016
@kindlyseth
Copy link

It's sometimes useful to ask people for the out put of go env and env | grep GO if they're having problems you can't reproduce on a fresh machine.

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

4 participants