common
common copied to clipboard
We depend on too much stuff
$ gvt fetch github.com/weaveworks/common
2017/01/25 14:21:24 Fetching: github.com/weaveworks/common
2017/01/25 14:21:26 · Skipping (existing): golang.org/x/net/context
2017/01/25 14:21:26 · Fetching recursive dependency: golang.org/x/tools/cover
2017/01/25 14:21:27 · Skipping (existing): github.com/opentracing/opentracing-go/ext
2017/01/25 14:21:27 · Skipping (existing): github.com/davecgh/go-spew/spew
2017/01/25 14:21:27 · Fetching recursive dependency: github.com/weaveworks/docker/pkg/mflag
2017/01/25 14:21:35 ·· Fetching recursive dependency: github.com/docker/docker/pkg/homedir
2017/01/25 14:22:04 ··· Fetching recursive dependency: github.com/docker/docker/vendor/github.com/opencontainers/runc/libcontainer/user
2017/01/25 14:22:04 ··· Fetching recursive dependency: github.com/docker/docker/pkg/idtools
2017/01/25 14:22:04 ···· Fetching recursive dependency: github.com/docker/docker/pkg/system
2017/01/25 14:22:04 ····· Fetching recursive dependency: github.com/docker/docker/vendor/github.com/Microsoft/go-winio
2017/01/25 14:22:04 ······ Fetching recursive dependency: github.com/docker/docker/vendor/golang.org/x/sys/windows
2017/01/25 14:22:04 ····· Fetching recursive dependency: github.com/docker/docker/vendor/github.com/docker/go-units
2017/01/25 14:22:04 ····· Fetching recursive dependency: github.com/docker/docker/vendor/github.com/Sirupsen/logrus
2017/01/25 14:22:04 ······ Fetching recursive dependency: github.com/docker/docker/vendor/golang.org/x/sys/unix
2017/01/25 14:22:05 ·· Fetching recursive dependency: github.com/docker/docker/pkg/mflag
2017/01/25 14:22:05 command "fetch" failed: error fetching github.com/docker/docker/pkg/mflag: lstat /var/folders/_b/ktq_dxhx0nbbw7gjtdzb3tn40000gn/T/gvt-769657176/pkg/mflag: no such file or directory
In particular, the mflag package is painful.
$ git ls-files -- '*.go' | grep -vE '^(vendor|prog|experimental)/' | xargs -n1 dirname | sort -u | sed -e 's|^|./|' | xargs -n1 go list -f '{{.Name}}: {{ .Imports }}'
backoff: [github.com/Sirupsen/logrus time]
exec: [io os/exec]
fs: [io io/ioutil os syscall]
httpgrpc: [bytes fmt github.com/golang/protobuf/proto github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc github.com/mwitkow/go-grpc-middleware github.com/opentracing/opentracing-go github.com/sercand/kuberesolver github.com/weaveworks/common/middleware golang.org/x/net/context google.golang.org/grpc io/ioutil math net net/http net/http/httptest strings]
instrument: [github.com/opentracing/opentracing-go github.com/opentracing/opentracing-go/ext github.com/prometheus/client_golang/prometheus golang.org/x/net/context time]
logging: [bytes fmt github.com/Sirupsen/logrus os strings]
middleware: [bufio fmt github.com/Sirupsen/logrus github.com/gorilla/mux github.com/prometheus/client_golang/prometheus github.com/weaveworks/common/user golang.org/x/net/context google.golang.org/grpc google.golang.org/grpc/metadata net net/http net/http/httputil net/url regexp strconv strings time]
mtime: [time]
network: [fmt net]
sanitize: [fmt github.com/Sirupsen/logrus net net/url strings]
signals: [os os/signal runtime syscall]
test: [github.com/davecgh/go-spew/spew github.com/pmezard/go-difflib/difflib]
exec: [bytes github.com/weaveworks/common/exec io io/ioutil]
fs: [bytes fmt github.com/weaveworks/common/fs io io/ioutil os strings syscall time]
main: [fmt golang.org/x/tools/cover os sort]
main: [bytes encoding/json fmt github.com/mgutz/ansi github.com/weaveworks/docker/pkg/mflag net/http net/url os os/exec sort strconv strings sync time]
main: [fmt github.com/armon/go-socks5 github.com/weaveworks/docker/pkg/mflag github.com/weaveworks/weave/common/mflagext golang.org/x/net/context net net/http os strings text/template]
user: [fmt golang.org/x/net/context]
tools/runner and tools/socks seem to be the offending candidates (bringing in github.com/weaveworks/docker/pkg/mflag)
Why is this still open? #16 claims to fix it.
Don't know. I'm content for it to be closed.