Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Build fail - specific golang version required maybe ? #84

Open
cmoulliard opened this issue Feb 24, 2016 · 4 comments
Open

Build fail - specific golang version required maybe ? #84

cmoulliard opened this issue Feb 24, 2016 · 4 comments

Comments

@cmoulliard
Copy link

The build process of kansible fails on MacOSX

dabou:~/Fuse/projects/fabric8/fabric8/kansible$ make bootstrap
go get -u github.com/golang/lint/golint github.com/mitchellh/gox
# github.com/mitchellh/gox
../../../../../MyApplications/go-1.5.1/src/github.com/mitchellh/gox/go.go:4: import /Users/chmoulli/MyApplications/go-1.5.1/pkg/darwin_amd64/bytes.a: object is [darwin amd64 go1.5.1 X:none] expected [darwin amd64 go1.5.2 X:none]

We should perhaps mention in the doc that golang 1.5.2 is required ?

@jstrachan
Copy link
Contributor

I'm using this version:

go version go1.5.1 darwin/amd64

I wonder if its about which folder you've cloned it?

Maybe something like this might help:

cd $GOPATH
mkdir -p src/github.com/fabric8io/
cd src/github.com/fabric8io/
git clone https://github.com/fabric8io/kansible.git
cd fabric8io
make bootstrap
make build

@jstrachan
Copy link
Contributor

BTW you can download the pre-built kansible binary for windows / OS X / linux too
https://github.com/fabric8io/kansible/releases

@cmoulliard
Copy link
Author

I have followed yours instructions but I get a missing package

~/MyApplications/go-1.5.2/src/github.com/fabric8io/kansible$ make build
go build -o bin/kansible -ldflags "-X main.version=v0.1.0+0b7abd5+a9e6078+15058e9+0f3047e+6a9c934+cb4ef30+3f532a7+8fb6aff+8fb6aff" kansible.go
vendor/github.com/prometheus/client_golang/prometheus/registry.go:36:2: cannot find package "bitbucket.org/ww/goautoneg" in any of:
    /Users/chmoulli/MyApplications/go-1.5.2/src/github.com/fabric8io/kansible/vendor/bitbucket.org/ww/goautoneg (vendor tree)
    /usr/local/Cellar/go/1.5.2/libexec/src/bitbucket.org/ww/goautoneg (from $GOROOT)
    /Users/chmoulli/MyApplications/go-1.5.2/src/bitbucket.org/ww/goautoneg (from $GOPATH)
make: *** [build] Error 1

@jimmidyson
Copy link
Contributor

Have you previously installed/tried to install 1.5.2?

On Thu, 25 Feb 2016 at 08:40 Charles Moulliard [email protected]
wrote:

I have followed yours instructions but I get a missing package

~/MyApplications/go-1.5.2/src/github.com/fabric8io/kansible$ make build
go build -o bin/kansible -ldflags "-X main.version=v0.1.0+0b7abd5+a9e6078+15058e9+0f3047e+6a9c934+cb4ef30+3f532a7+8fb6aff+8fb6aff" kansible.go
vendor/github.com/prometheus/client_golang/prometheus/registry.go:36:2: cannot find package "bitbucket.org/ww/goautoneg" in any of:
/Users/chmoulli/MyApplications/go-1.5.2/src/github.com/fabric8io/kansible/vendor/bitbucket.org/ww/goautoneg (vendor tree)
/usr/local/Cellar/go/1.5.2/libexec/src/bitbucket.org/ww/goautoneg (from $GOROOT)
/Users/chmoulli/MyApplications/go-1.5.2/src/bitbucket.org/ww/goautoneg (from $GOPATH)
make: *** [build] Error 1


Reply to this email directly or view it on GitHub
#84 (comment).

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

3 participants