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

Dep installation fails on Go version 1.7.x #1967

Closed
HaraldNordgren opened this issue Jul 28, 2018 · 1 comment
Closed

Dep installation fails on Go version 1.7.x #1967

HaraldNordgren opened this issue Jul 28, 2018 · 1 comment

Comments

@HaraldNordgren
Copy link
Member

HaraldNordgren commented Jul 28, 2018

What dep command did you run?

$ docker run golang:1.7 bash -c 'go get -v github.com/golang/dep/cmd/dep'
github.com/golang/dep (download)
github.com/golang/dep/vendor/github.com/Masterminds/semver
github.com/golang/dep/vendor/github.com/Masterminds/vcs
github.com/golang/dep/vendor/github.com/armon/go-radix
github.com/golang/dep/vendor/github.com/boltdb/bolt
github.com/golang/dep/vendor/github.com/golang/protobuf/proto
github.com/golang/dep/gps/paths
github.com/golang/dep/gps/pkgtree
github.com/golang/dep/vendor/github.com/pkg/errors
github.com/golang/dep/internal/fs
github.com/golang/dep/vendor/github.com/jmank88/nuts
github.com/golang/dep/vendor/github.com/nightlyone/lockfile
github.com/golang/dep/vendor/github.com/sdboyer/constext
github.com/golang/dep/vendor/golang.org/x/net/context
github.com/golang/dep/vendor/golang.org/x/sync/errgroup
github.com/golang/dep/gps/internal/pb
github.com/golang/dep/vendor/github.com/pelletier/go-toml
github.com/golang/dep/gps
# github.com/golang/dep/gps
src/github.com/golang/dep/gps/constraint.go:378: undefined: sort.SliceStable
src/github.com/golang/dep/gps/lock.go:31: undefined: sort.SliceIsSorted
src/github.com/golang/dep/gps/lock.go:38: undefined: sort.Slice
github.com/golang/dep/vendor/gopkg.in/yaml.v2

The command works on later Go images.

@HaraldNordgren
Copy link
Member Author

I realized now that when installing dep on Travis it's probably better to call

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

which works independently of your Go version. Closing this one.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant