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

go install fails on Alpine GNU/Linux from bb11ff7 #1140

Closed
camelpunch opened this issue Sep 8, 2017 · 3 comments
Closed

go install fails on Alpine GNU/Linux from bb11ff7 #1140

camelpunch opened this issue Sep 8, 2017 · 3 comments

Comments

@camelpunch
Copy link

Our CI started failing because we were depending on master dep.

From bb11ff7 a go install ./... (hence also a go get) exits 2 like so:

bash-4.3# go install ./...
# github.com/golang/dep/internal/gps
internal/gps/constraints.go:334: undefined: sort.SliceStable
internal/gps/constraints.go:353: undefined: sort.SliceStable
internal/gps/lock.go:55: undefined: sort.SliceIsSorted
internal/gps/lock.go:62: undefined: sort.Slice

We found this SHA using git bisect between v0.3.0 and master.

What did you expect to see?

We expected go get to successfully install dep.

We do not see this problem on OSX.

@ebati
Copy link
Contributor

ebati commented Sep 8, 2017

It seems like you are using an older version of go (those sort functions are introduced in 1.8). dep requires Go 1.8 or newer to compile as noted in readme.

@ibrasho
Copy link
Collaborator

ibrasho commented Sep 8, 2017

As @ebati said, please check the Go version on that machine to ensure it's >= 1.8

@ibrasho ibrasho closed this as completed Sep 8, 2017
@camelpunch
Copy link
Author

Yep, 1.7.5. Thanks!

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