Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: spurious 'package provided […] but not at required version' error #31487

Closed
dionysius opened this issue Apr 16, 2019 · 9 comments
Closed

Comments

@dionysius
Copy link

@dionysius dionysius commented Apr 16, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.4 linux/amd64

Does this issue reproduce with the latest release?

yes. 1.12.4 is currently the newest release at the time of this writing

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dionysius/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/dionysius/Projects/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/dionysius/Projects/go/src/example.com/group/subgroup/project/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build017911527=/tmp/go-build -gno-record-gcc-switches"

What did you do?

before adding kubernetes' client-go, everything was fine

$ git status Output
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
$ go mod tidy Output
go: finding github.com/maxbrunsfeld/counterfeiter/v6/fixtures/fixturesfakes latest
go: finding github.com/maxbrunsfeld/counterfeiter/v6/fixtures latest
go: finding github.com/maxbrunsfeld/counterfeiter latest
go: downloading github.com/maxbrunsfeld/counterfeiter v0.0.0-20190403205704-54ab73b4b78d
go: finding gonum.org/v1/netlib/blas latest
go: finding gonum.org/v1/netlib latest
$ go mod graph Output
example.com/group/subgroup/project github.com/Microsoft/go-winio@v0.4.12
example.com/group/subgroup/project github.com/RackSec/srslog@v0.0.0-20180709174129-a4725f04ec91
example.com/group/subgroup/project github.com/gogo/protobuf@v1.2.1
example.com/group/subgroup/project github.com/golang/protobuf@v1.3.1
example.com/group/subgroup/project github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd
example.com/group/subgroup/project github.com/google/uuid@v1.0.0
example.com/group/subgroup/project github.com/goph/emperror@v0.16.0
example.com/group/subgroup/project github.com/jcelliott/lumber@v0.0.0-20160324203708-dd349441af25
example.com/group/subgroup/project github.com/json-iterator/go@v0.0.0-20180722035151-10a568c51178
example.com/group/subgroup/project github.com/konsorten/go-windows-terminal-sequences@v1.0.2
example.com/group/subgroup/project github.com/mattn/go-isatty@v0.0.7
example.com/group/subgroup/project github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2
example.com/group/subgroup/project github.com/nanobox-io/golang-scribble@v0.0.0-20190309225732-aa3e7c118975
example.com/group/subgroup/project github.com/onsi/ginkgo@v1.8.0
example.com/group/subgroup/project github.com/pkg/errors@v0.8.1
example.com/group/subgroup/project github.com/shinji62/logrus-syslog-ng@v0.0.0-20180605090607-3974ebb047a0
example.com/group/subgroup/project github.com/sirupsen/logrus@v1.4.1
example.com/group/subgroup/project github.com/spf13/afero@v1.2.2
example.com/group/subgroup/project github.com/spf13/cobra@v0.0.3
example.com/group/subgroup/project github.com/spf13/jwalterweatherman@v1.1.0
example.com/group/subgroup/project github.com/spf13/pflag@v1.0.3
example.com/group/subgroup/project github.com/spf13/viper@v1.3.2
example.com/group/subgroup/project github.com/stretchr/testify@v1.3.0
example.com/group/subgroup/project github.com/thedevsaddam/gojsonq@v0.0.0-20190220145129-5ac255c240be
example.com/group/subgroup/project golang.org/x/net@v0.0.0-20190328230028-74de082e2cca
example.com/group/subgroup/project golang.org/x/sys@v0.0.0-20190402142545-baf5eb976a8c
example.com/group/subgroup/project golang.org/x/tools@v0.0.0-20190402160749-c5ac96b4c419
example.com/group/subgroup/project google.golang.org/grpc@v1.19.1
example.com/group/subgroup/project gopkg.in/inf.v0@v0.9.1
example.com/group/subgroup/project gopkg.in/src-d/go-license-detector.v2@v2.0.1
example.com/group/subgroup/project k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006
example.com/group/subgroup/project k8s.io/klog@v0.1.0
example.com/group/subgroup/project k8s.io/kubernetes@v1.13.5
golang.org/x/net@v0.0.0-20190328230028-74de082e2cca golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2
golang.org/x/net@v0.0.0-20190328230028-74de082e2cca golang.org/x/text@v0.3.0
github.com/gogo/protobuf@v1.2.1 github.com/kisielk/errcheck@v1.1.0
github.com/mattn/go-isatty@v0.0.7 golang.org/x/sys@v0.0.0-20190222072716-a9d3bda3a223
github.com/spf13/viper@v1.3.2 github.com/armon/consul-api@v0.0.0-20180202201655-eb2c6b5be1b6
github.com/spf13/viper@v1.3.2 github.com/coreos/etcd@v3.3.10+incompatible
github.com/spf13/viper@v1.3.2 github.com/coreos/go-etcd@v2.0.0+incompatible
github.com/spf13/viper@v1.3.2 github.com/coreos/go-semver@v0.2.0
github.com/spf13/viper@v1.3.2 github.com/fsnotify/fsnotify@v1.4.7
github.com/spf13/viper@v1.3.2 github.com/hashicorp/hcl@v1.0.0
github.com/spf13/viper@v1.3.2 github.com/magiconair/properties@v1.8.0
github.com/spf13/viper@v1.3.2 github.com/mitchellh/mapstructure@v1.1.2
github.com/spf13/viper@v1.3.2 github.com/pelletier/go-toml@v1.2.0
github.com/spf13/viper@v1.3.2 github.com/spf13/afero@v1.1.2
github.com/spf13/viper@v1.3.2 github.com/spf13/cast@v1.3.0
github.com/spf13/viper@v1.3.2 github.com/spf13/jwalterweatherman@v1.0.0
github.com/spf13/viper@v1.3.2 github.com/spf13/pflag@v1.0.3
github.com/spf13/viper@v1.3.2 github.com/stretchr/testify@v1.2.2
github.com/spf13/viper@v1.3.2 github.com/ugorji/go/codec@v0.0.0-20181204163529-d75b2dcb6bc8
github.com/spf13/viper@v1.3.2 github.com/xordataexchange/crypt@v0.0.3-0.20170626215501-b2862e3d0a77
github.com/spf13/viper@v1.3.2 golang.org/x/crypto@v0.0.0-20181203042331-505ab145d0a9
github.com/spf13/viper@v1.3.2 golang.org/x/sys@v0.0.0-20181205085412-a5c9d58dba9a
github.com/spf13/viper@v1.3.2 golang.org/x/text@v0.3.0
github.com/spf13/viper@v1.3.2 gopkg.in/yaml.v2@v2.2.2
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/alcortesm/tgz@v0.0.0-20161220082320-9c5fe88206d7
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/anmitsu/go-shlex@v0.0.0-20161002113705-648efa622239
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/davecgh/go-spew@v1.1.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/dgryski/go-metro@v0.0.0-20180109044635-280f6062b5bc
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/dgryski/go-minhash@v0.0.0-20170608043002-7fe510aff544
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/dgryski/go-spooky@v0.0.0-20170606183049-ed3d087f40e2
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/ekzhu/minhash-lsh@v0.0.0-20171225071031-5c06ee8586a1
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/flynn/go-shlex@v0.0.0-20150515145356-3f9db97f8568
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/gliderlabs/ssh@v0.1.1
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/google/go-cmp@v0.2.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/hhatto/gorst@v0.0.0-20171128071645-7682c8a25108
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/jbenet/go-context@v0.0.0-20150711004518-d14ea06fba99
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/jdkato/prose@v1.1.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/kevinburke/ssh_config@v0.0.0-20180127194858-0ff8514904a8
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/mitchellh/go-homedir@v0.0.0-20161203194507-b8bc1bf76747
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/montanaflynn/stats@v0.0.0-20151014174947-eeaced052adb
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/neurosnap/sentences@v1.0.6
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/pelletier/go-buffruneio@v0.2.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/pkg/errors@v0.8.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/pmezard/go-difflib@v1.0.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/russross/blackfriday/v2@v2.0.1
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/sergi/go-diff@v0.0.0-20180205163309-da645544ed44
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/shogo82148/go-shuffle@v0.0.0-20170808115208-59829097ff3b
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/shurcooL/sanitized_anchor_name@v0.0.0-20170918181015-86672fcb3f95
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/spf13/pflag@v1.0.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/src-d/gcfg@v1.3.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/stretchr/testify@v1.2.1
gopkg.in/src-d/go-license-detector.v2@v2.0.1 github.com/xanzy/ssh-agent@v0.2.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 golang.org/x/crypto@v0.0.0-20180206190813-d9133f546934
gopkg.in/src-d/go-license-detector.v2@v2.0.1 golang.org/x/exp@v0.0.0-20171209012058-072991165226
gopkg.in/src-d/go-license-detector.v2@v2.0.1 golang.org/x/net@v0.0.0-20180208041118-f5dfe339be1d
gopkg.in/src-d/go-license-detector.v2@v2.0.1 golang.org/x/text@v0.0.0-20180208041248-4e4a3210bb54
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gonum.org/v1/gonum@v0.0.0-20180205154402-996b88e8f894
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/neurosnap/sentences.v1@v1.0.6
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/src-d/go-billy-siva.v4@v4.3.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/src-d/go-billy.v4@v4.3.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/src-d/go-git-fixtures.v3@v3.3.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/src-d/go-git.v4@v4.1.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/src-d/go-siva.v1@v1.5.0
gopkg.in/src-d/go-license-detector.v2@v2.0.1 gopkg.in/warnings.v0@v0.1.2
golang.org/x/tools@v0.0.0-20190402160749-c5ac96b4c419 golang.org/x/net@v0.0.0-20190311183353-d8887717615a
github.com/stretchr/testify@v1.3.0 github.com/davecgh/go-spew@v1.1.0
github.com/stretchr/testify@v1.3.0 github.com/pmezard/go-difflib@v1.0.0
github.com/stretchr/testify@v1.3.0 github.com/stretchr/objx@v0.1.0
github.com/spf13/cast@v1.3.0 github.com/davecgh/go-spew@v1.1.1
github.com/spf13/cast@v1.3.0 github.com/pmezard/go-difflib@v1.0.0
github.com/spf13/cast@v1.3.0 github.com/stretchr/testify@v1.2.2
github.com/kr/text@v0.1.0 github.com/kr/pty@v1.1.1
github.com/golangci/errcheck@v0.0.0-20181003203344-ef45e06d44b6 golang.org/x/tools@v0.0.0-20180221164845-07fd8470d635
github.com/golangci/errcheck@v0.0.0-20181003203344-ef45e06d44b6 github.com/kisielk/gotool@v1.0.0
github.com/joefitzgerald/rainbow-reporter@v0.1.0 github.com/sclevine/spec@v1.2.0
golang.org/x/net@v0.0.0-20190313220215-9f648a60d977 golang.org/x/text@v0.3.0
golang.org/x/net@v0.0.0-20190313220215-9f648a60d977 golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2
github.com/kr/pretty@v0.1.0 github.com/kr/text@v0.1.0
gopkg.in/errgo.v2@v2.1.0 gopkg.in/check.v1@v1.0.0-20180628173108-788fd7840127
gopkg.in/errgo.v2@v2.1.0 github.com/kr/pretty@v0.1.0
golang.org/x/net@v0.0.0-20190320064053-1272bf9dcd53 golang.org/x/text@v0.3.0
golang.org/x/net@v0.0.0-20190320064053-1272bf9dcd53 golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2
github.com/rogpeppe/go-internal@v1.1.0 gopkg.in/errgo.v2@v2.1.0
github.com/spf13/afero@v1.2.2 golang.org/x/text@v0.3.0
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 gopkg.in/yaml.v2@v2.0.0-20170812160011-eb3733d160e7
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 gopkg.in/check.v1@v1.0.0-20180628173108-788fd7840127
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 golang.org/x/tools@v0.0.0-20170915040203-e531a2a1c15f
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 golang.org/x/text@v0.0.0-20170915090833-1cbadb444a80
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 golang.org/x/sys@v0.0.0-20171026204733-164713f0dfce
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 golang.org/x/net@v0.0.0-20170915142106-8351a756f30f
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/stretchr/testify@v1.2.2
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/ryanuber/go-glob@v0.0.0-20170128012129-256dc444b735
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/pmezard/go-difflib@v1.0.0
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/onsi/gomega@v0.0.0-20170829124025-dcabb60a477c
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/onsi/ginkgo@v0.0.0-20170829012221-11459a886d9c
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/nbutton23/zxcvbn-go@v0.0.0-20160627004424-a22cb81b2ecd
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/mozilla/tls-observatory@v0.0.0-20180409132520-8791a200eb40
gopkg.in/yaml.v2@v2.2.1 gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405
github.com/spf13/jwalterweatherman@v1.1.0 github.com/davecgh/go-spew@v1.1.1
github.com/spf13/jwalterweatherman@v1.1.0 github.com/pmezard/go-difflib@v1.0.0
github.com/spf13/jwalterweatherman@v1.1.0 github.com/stretchr/testify@v1.2.2
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 github.com/fsnotify/fsnotify@v1.4.7
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 github.com/golang/protobuf@v1.2.0
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 github.com/hpcloud/tail@v1.0.0
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 github.com/onsi/ginkgo@v1.6.0
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 golang.org/x/net@v0.0.0-20180906233101-161cd47e91fd
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 golang.org/x/sys@v0.0.0-20180909124046-d0be0721c37e
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 golang.org/x/text@v0.3.0
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 gopkg.in/fsnotify.v1@v1.4.7
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 gopkg.in/tomb.v1@v1.0.0-20141024135613-dd632973f1e7
github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3 gopkg.in/yaml.v2@v2.2.1
google.golang.org/grpc@v1.19.1 cloud.google.com/go@v0.26.0
google.golang.org/grpc@v1.19.1 github.com/BurntSushi/toml@v0.3.1
google.golang.org/grpc@v1.19.1 github.com/client9/misspell@v0.3.4
google.golang.org/grpc@v1.19.1 github.com/golang/glog@v0.0.0-20160126235308-23def4e6c14b
google.golang.org/grpc@v1.19.1 github.com/golang/mock@v1.1.1
google.golang.org/grpc@v1.19.1 github.com/golang/protobuf@v1.2.0
google.golang.org/grpc@v1.19.1 golang.org/x/lint@v0.0.0-20181026193005-c67002cb31c3
google.golang.org/grpc@v1.19.1 golang.org/x/net@v0.0.0-20180826012351-8a410e7b638d
google.golang.org/grpc@v1.19.1 golang.org/x/oauth2@v0.0.0-20180821212333-d2e6202438be
google.golang.org/grpc@v1.19.1 golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f
google.golang.org/grpc@v1.19.1 golang.org/x/sys@v0.0.0-20180830151530-49385e6e1522
google.golang.org/grpc@v1.19.1 golang.org/x/text@v0.3.0
google.golang.org/grpc@v1.19.1 golang.org/x/tools@v0.0.0-20190114222345-bf090417da8b
google.golang.org/grpc@v1.19.1 google.golang.org/appengine@v1.1.0
google.golang.org/grpc@v1.19.1 google.golang.org/genproto@v0.0.0-20180817151627-c66870c02cf8
google.golang.org/grpc@v1.19.1 honnef.co/go/tools@v0.0.0-20190102054323-c2f93a96b099
golang.org/x/net@v0.0.0-20190311183353-d8887717615a golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2
golang.org/x/net@v0.0.0-20190311183353-d8887717615a golang.org/x/text@v0.3.0
golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2 golang.org/x/sys@v0.0.0-20190215142949-d0b11bdaac8a
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 github.com/joefitzgerald/rainbow-reporter@v0.1.0
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 github.com/onsi/gomega@v1.5.0
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 github.com/sclevine/spec@v1.2.0
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 golang.org/x/net@v0.0.0-20190320064053-1272bf9dcd53
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 golang.org/x/sync@v0.0.0-20181221193216-37e7f081c4d4
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 golang.org/x/sys@v0.0.0-20190318195719-6c81ef8f67ca
github.com/maxbrunsfeld/counterfeiter/v6@v6.0.2 golang.org/x/tools@v0.0.0-20190320215829-36c10c0a621f
github.com/kisielk/errcheck@v1.1.0 github.com/kisielk/gotool@v1.0.0
github.com/kisielk/errcheck@v1.1.0 golang.org/x/tools@v0.0.0-20180221164845-07fd8470d635
golang.org/x/tools@v0.0.0-20190320215829-36c10c0a621f golang.org/x/net@v0.0.0-20190311183353-d8887717615a
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/BurntSushi/toml@v0.3.1
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/OpenPeeDeeP/depguard@v0.0.0-20180806142446-a69c782687b2
gopkg.in/src-d/go-billy.v4@v4.3.0 golang.org/x/sys@v0.0.0-20180903190138-2b024373dcd9
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/fatih/color@v1.6.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/go-lintpack/lintpack@v0.5.2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/go-ole/go-ole@v1.2.1
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/gobwas/glob@v0.2.3
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golang/mock@v1.1.1
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/check@v0.0.0-20180506172741-cfe4005ccda2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/dupl@v0.0.0-20180902072040-3e9179ac440a
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/errcheck@v0.0.0-20181003203344-ef45e06d44b6
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/go-misc@v0.0.0-20180628070357-927a3d87b613
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/go-tools@v0.0.0-20180109140146-af6baa5dc196
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/goconst@v0.0.0-20180610141641-041c5f2b40f3
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/gocyclo@v0.0.0-20180528134321-2becd97e67ee
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/gofmt@v0.0.0-20181105071733-0b8337e80d98
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/ineffassign@v0.0.0-20180808204949-2ee8f2867dde
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/lint-1@v0.0.0-20180610141402-4bf9709227d1
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/maligned@v0.0.0-20180506175553-b1d89398deca
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/misspell@v0.0.0-20180809174111-950f5d19e770
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/prealloc@v0.0.0-20180630174525-215b22d4de21
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/revgrep@v0.0.0-20180526074752-d9c87f5ffaf0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/golangci/unconvert@v0.0.0-20180507085042-28b1c447d1f4
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/hashicorp/hcl@v0.0.0-20180404174102-ef8a98b0bbce
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/inconshreveable/mousetrap@v1.0.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/magiconair/properties@v1.7.6
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/mattn/go-colorable@v0.0.9
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/mattn/go-isatty@v0.0.3
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/mitchellh/go-homedir@v1.0.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/mitchellh/go-ps@v0.0.0-20170309133038-4fdf99ab2936
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/mitchellh/mapstructure@v0.0.0-20180220230111-00c29f56e238
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/nbutton23/zxcvbn-go@v0.0.0-20171102151520-eafdab6b0663
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/onsi/gomega@v1.4.2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/pelletier/go-toml@v1.1.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/pkg/errors@v0.8.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/shirou/gopsutil@v0.0.0-20180427012116-c95755e4bcd7
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/shirou/w32@v0.0.0-20160930032740-bb4de0191aa4
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/sirupsen/logrus@v1.0.5
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/spf13/afero@v1.1.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/spf13/cast@v1.2.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/spf13/cobra@v0.0.2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/spf13/jwalterweatherman@v0.0.0-20180109140146-7c0cea34c8ec
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/spf13/pflag@v1.0.1
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/spf13/viper@v1.0.2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/stretchr/testify@v1.2.2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd golang.org/x/crypto@v0.0.0-20190313024323-a1f597ede03a
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd golang.org/x/net@v0.0.0-20190313220215-9f648a60d977
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd golang.org/x/sys@v0.0.0-20190312061237-fead79001313
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd golang.org/x/tools@v0.0.0-20190314010720-f0bfdbff1f9c
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd gopkg.in/airbrake/gobrake.v2@v2.0.9
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd gopkg.in/gemnasium/logrus-airbrake-hook.v2@v2.1.2
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd gopkg.in/yaml.v2@v2.2.1
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd mvdan.cc/interfacer@v0.0.0-20180901003855-c20040233aed
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd mvdan.cc/lint@v0.0.0-20170908181259-adc824a0674b
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd mvdan.cc/unparam@v0.0.0-20190124213536-fbb59629db34
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd sourcegraph.com/sourcegraph/go-diff@v0.5.1-0.20190210232911-dee78e514455
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/kr/pretty@v0.1.0
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/kisielk/gotool@v0.0.0-20161130080628-0de1eaf82fa3
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/golang/protobuf@v1.2.0
github.com/golangci/gosec@v0.0.0-20180901114220-66fb7fc33547 github.com/davecgh/go-spew@v1.1.1
github.com/sirupsen/logrus@v1.4.1 github.com/davecgh/go-spew@v1.1.1
github.com/sirupsen/logrus@v1.4.1 github.com/konsorten/go-windows-terminal-sequences@v1.0.1
github.com/sirupsen/logrus@v1.4.1 github.com/pmezard/go-difflib@v1.0.0
github.com/sirupsen/logrus@v1.4.1 github.com/stretchr/objx@v0.1.1
github.com/sirupsen/logrus@v1.4.1 github.com/stretchr/testify@v1.2.2
github.com/sirupsen/logrus@v1.4.1 golang.org/x/sys@v0.0.0-20180905080454-ebe1bf3edb33
github.com/onsi/gomega@v1.5.0 github.com/fsnotify/fsnotify@v1.4.7
github.com/onsi/gomega@v1.5.0 github.com/golang/protobuf@v1.2.0
github.com/onsi/gomega@v1.5.0 github.com/hpcloud/tail@v1.0.0
github.com/onsi/gomega@v1.5.0 github.com/onsi/ginkgo@v1.6.0
github.com/onsi/gomega@v1.5.0 golang.org/x/net@v0.0.0-20180906233101-161cd47e91fd
github.com/onsi/gomega@v1.5.0 golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f
github.com/onsi/gomega@v1.5.0 golang.org/x/sys@v0.0.0-20180909124046-d0be0721c37e
github.com/onsi/gomega@v1.5.0 golang.org/x/text@v0.3.0
github.com/onsi/gomega@v1.5.0 gopkg.in/fsnotify.v1@v1.4.7
github.com/onsi/gomega@v1.5.0 gopkg.in/tomb.v1@v1.0.0-20141024135613-dd632973f1e7
github.com/onsi/gomega@v1.5.0 gopkg.in/yaml.v2@v2.2.1
golang.org/x/crypto@v0.0.0-20190313024323-a1f597ede03a golang.org/x/sys@v0.0.0-20190215142949-d0b11bdaac8a
github.com/onsi/gomega@v1.4.2 github.com/fsnotify/fsnotify@v1.4.7
github.com/onsi/gomega@v1.4.2 github.com/golang/protobuf@v1.2.0
github.com/onsi/gomega@v1.4.2 github.com/hpcloud/tail@v1.0.0
github.com/onsi/gomega@v1.4.2 github.com/onsi/ginkgo@v1.6.0
github.com/onsi/gomega@v1.4.2 golang.org/x/net@v0.0.0-20180906233101-161cd47e91fd
github.com/onsi/gomega@v1.4.2 golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f
github.com/onsi/gomega@v1.4.2 golang.org/x/sys@v0.0.0-20180909124046-d0be0721c37e
github.com/onsi/gomega@v1.4.2 golang.org/x/text@v0.3.0
github.com/onsi/gomega@v1.4.2 gopkg.in/fsnotify.v1@v1.4.7
github.com/onsi/gomega@v1.4.2 gopkg.in/tomb.v1@v1.0.0-20141024135613-dd632973f1e7
github.com/onsi/gomega@v1.4.2 gopkg.in/yaml.v2@v2.2.1
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-lintpack/lintpack@v0.5.2
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/astcast@v0.0.0-20181028201508-b7a89ed70af1
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/astcopy@v0.0.0-20180903214859-79b422d080c4
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/astequal@v0.0.0-20180903214952-dcb477bfacd6
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/astfmt@v0.0.0-20180903215011-8f8ee99c3086
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/astp@v0.0.0-20180903215135-0af7e3c24f30
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/strparse@v0.0.0-20180903215201-830b6daa1241
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/go-toolsmith/typep@v0.0.0-20181030061450-d63dc7650676
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead github.com/mattn/goveralls@v0.0.2
github.com/go-critic/go-critic@v0.0.0-20181204210945-ee9bf5809ead golang.org/x/tools@v0.0.0-20181205014116-22934f0fdb62
github.com/hashicorp/hcl@v1.0.0 github.com/davecgh/go-spew@v1.1.1
github.com/go-lintpack/lintpack@v0.5.2 github.com/go-toolsmith/astequal@v0.0.0-20180903214952-dcb477bfacd6
github.com/go-lintpack/lintpack@v0.5.2 github.com/go-toolsmith/astfmt@v0.0.0-20180903215011-8f8ee99c3086
github.com/go-lintpack/lintpack@v0.5.2 github.com/go-toolsmith/astp@v0.0.0-20180903215135-0af7e3c24f30
github.com/go-lintpack/lintpack@v0.5.2 github.com/go-toolsmith/pkgload@v0.0.0-20181119091011-e9e65178eee8
github.com/go-lintpack/lintpack@v0.5.2 github.com/google/go-cmp@v0.2.0
github.com/go-lintpack/lintpack@v0.5.2 github.com/logrusorgru/aurora@v0.0.0-20181002194514-a7b3b318ed4e
github.com/go-lintpack/lintpack@v0.5.2 golang.org/x/tools@v0.0.0-20181117154741-2ddaf7f79a09
gopkg.in/yaml.v2@v2.2.2 gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405
gopkg.in/src-d/go-billy.v4@v4.3.0 github.com/kr/pretty@v0.1.0
github.com/golangci/golangci-lint@v0.0.0-20190401125947-de1d1ad903cd github.com/StackExchange/wmi@v0.0.0-20180116203802-5d049714c4a6
gopkg.in/src-d/go-billy.v4@v4.3.0 gopkg.in/check.v1@v1.0.0-20180628173108-788fd7840127
golang.org/x/tools@v0.0.0-20190314010720-f0bfdbff1f9c golang.org/x/net@v0.0.0-20190311183353-d8887717615a
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/elazarl/goproxy@v0.0.0-20170405201442-c4fc26588b6e
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/davecgh/go-spew@v1.1.1
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/docker/spdystream@v0.0.0-20160310174837-449fdfce4d96
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 sigs.k8s.io/yaml@v1.1.0
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 k8s.io/kube-openapi@v0.0.0-20190228160746-b3a7cee44a30
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 k8s.io/klog@v0.0.0-20190306015804-8e90cee79f82
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 gopkg.in/yaml.v2@v2.2.1
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 gopkg.in/inf.v0@v0.9.0
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 golang.org/x/sys@v0.0.0-20181116152217-5ac8a444bdc5
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 golang.org/x/sync@v0.0.0-20181108010431-42b317875d0f
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 golang.org/x/net@v0.0.0-20190206173232-65e2d4e15006
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/stretchr/testify@v1.2.2
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/spf13/pflag@v1.0.1
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/pmezard/go-difflib@v1.0.0
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/onsi/gomega@v0.0.0-20190113212917-5533ce8a0da3
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/mxk/go-flowrate@v0.0.0-20140419014527-cca7078d478f
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/modern-go/reflect2@v1.0.1
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/modern-go/concurrent@v0.0.0-20180306012644-bacd9c7ef1dd
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/gogo/protobuf@v1.1.1
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/golang/groupcache@v0.0.0-20160516000752-02826c3e7903
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/json-iterator/go@v0.0.0-20180701071628-ab8a2e0c74be
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/hashicorp/golang-lru@v0.5.0
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/googleapis/gnostic@v0.0.0-20170729233727-0c5108395e2d
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/google/uuid@v0.0.0-20171113160352-8c31c18f31ed
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/google/gofuzz@v0.0.0-20170612174753-24818f796faf
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/golang/protobuf@v1.2.0
k8s.io/apimachinery@v0.0.0-20190404065847-4a4abcd45006 github.com/evanphx/json-patch@v0.0.0-20190203023257-5858425f7550
mvdan.cc/unparam@v0.0.0-20190124213536-fbb59629db34 golang.org/x/tools@v0.0.0-20190121143147-24cd39ecf745
mvdan.cc/unparam@v0.0.0-20190124213536-fbb59629db34 github.com/rogpeppe/go-internal@v1.1.0
sourcegraph.com/sourcegraph/go-diff@v0.5.1-0.20190210232911-dee78e514455 github.com/shurcooL/go-goon@v0.0.0-20170922171312-37c2f522c041
sourcegraph.com/sourcegraph/go-diff@v0.5.1-0.20190210232911-dee78e514455 github.com/gogo/protobuf@v1.1.1
sourcegraph.com/sourcegraph/go-diff@v0.5.1-0.20190210232911-dee78e514455 github.com/shurcooL/go@v0.0.0-20180423040247-9e1955d9fb6e
sourcegraph.com/sourcegraph/go-diff@v0.5.1-0.20190210232911-dee78e514455 sourcegraph.com/sqs/pbtypes@v0.0.0-20180604144634-d3ebe8f20ae4

making the changes...

$ git diff Output
diff --git a/outbound/client.go b/outbound/client.go
index 19836f2..ff8e85f 100644
--- a/outbound/client.go
+++ b/outbound/client.go
@@ -9,6 +9,8 @@ import (
        "github.com/goph/emperror"
        "github.com/pkg/errors"
        "google.golang.org/grpc"
+       "k8s.io/client-go/kubernetes"
+       "k8s.io/client-go/tools/clientcmd"
        runtime "k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2"
        "k8s.io/kubernetes/pkg/kubelet/util"
 )
@@ -117,14 +119,14 @@ func (c *Client) SetUpstreamManifest(dir string) error {
 
 // SetUpstreamKubeAPI enables the upstream watcher for the kubernetes API (dynamic pods)
 func (c *Client) SetUpstreamKubeAPI(file string) error {
-       // cfg, err := clientcmd.BuildConfigFromFlags("", file)
-       // if err != nil {
-       //      return err
-       // }
+       cfg, err := clientcmd.BuildConfigFromFlags("", file)
+       if err != nil {
+               return err
+       }
 
-       // kubeClient, err := kubernetes.NewForConfig(cfg)
-       // if err != nil {
-       //      return err
-       // }
-       // return nil
+       kubeClient, err := kubernetes.NewForConfig(cfg)
+       if err != nil {
+               return err
+       }
+       return nil
 }
$ go mod tidy Output
go: finding github.com/maxbrunsfeld/counterfeiter/v6/fixtures/fixturesfakes latest
go: finding github.com/maxbrunsfeld/counterfeiter/v6/fixtures latest
go: finding github.com/maxbrunsfeld/counterfeiter latest
go: downloading github.com/maxbrunsfeld/counterfeiter v0.0.0-20190403205704-54ab73b4b78d
go: finding gonum.org/v1/netlib/blas latest
go: finding gonum.org/v1/netlib latest
go: finding k8s.io/client-go/kubernetes latest
go: finding k8s.io/client-go/tools/clientcmd latest
go: finding k8s.io/client-go/tools latest
go: finding golang.org/x/time/rate latest
go: finding golang.org/x/time latest
go: finding k8s.io/api/authentication/v1beta1 latest
go: finding k8s.io/api/autoscaling/v2beta1 latest
go: finding k8s.io/api/authorization/v1beta1 latest
go: finding k8s.io/api/networking/v1beta1 latest
go: finding k8s.io/api/apps/v1beta1 latest
go: finding k8s.io/api/rbac/v1beta1 latest
go: finding k8s.io/api/scheduling latest
go: finding k8s.io/api/rbac latest
go: finding k8s.io/api/scheduling/v1alpha1 latest
go: finding k8s.io/api/scheduling/v1beta1 latest
go: finding k8s.io/api/authentication latest
go: finding k8s.io/api/autoscaling latest
go: finding k8s.io/api/authorization latest
go: finding k8s.io/api/networking latest
go: finding k8s.io/api/apps latest
go: finding k8s.io/api latest
go: finding k8s.io/api/batch/v1beta1 latest
go: finding k8s.io/api/extensions/v1beta1 latest
go: finding k8s.io/api/autoscaling/v2beta2 latest
go: finding k8s.io/api/storage/v1beta1 latest
go: finding k8s.io/api/coordination/v1beta1 latest
go: finding k8s.io/api/settings/v1alpha1 latest
go: finding k8s.io/api/batch latest
go: finding k8s.io/api/extensions latest
go: finding k8s.io/api/storage latest
go: finding k8s.io/api/rbac/v1alpha1 latest
go: finding k8s.io/api/coordination latest
go: finding k8s.io/api/admissionregistration/v1beta1 latest
go: finding k8s.io/api/storage/v1alpha1 latest
go: finding k8s.io/api/settings latest
go: finding k8s.io/api/certificates/v1beta1 latest
go: finding k8s.io/api/policy/v1beta1 latest
go: finding k8s.io/api/auditregistration/v1alpha1 latest
go: finding k8s.io/api/admissionregistration latest
go: finding k8s.io/api/node/v1alpha1 latest
go: finding k8s.io/api/certificates latest
go: finding k8s.io/api/policy latest
go: finding k8s.io/api/batch/v2alpha1 latest
go: finding k8s.io/api/apps/v1beta2 latest
go: finding k8s.io/api/auditregistration latest
go: finding k8s.io/api/node/v1beta1 latest
go: finding k8s.io/api/events/v1beta1 latest
go: finding k8s.io/api/node latest
go: finding k8s.io/api/events latest
go: finding k8s.io/api/core latest
go: finding k8s.io/utils/integer latest
go: finding k8s.io/utils latest
go: finding golang.org/x/text/runes latest
go: finding golang.org/x/text/encoding/htmlindex latest
go: finding golang.org/x/text/transform latest
go: finding golang.org/x/text/unicode/bidi latest
go: finding golang.org/x/text/encoding/charmap latest
go: finding golang.org/x/text/secure/bidirule latest
go: finding golang.org/x/text/encoding latest
go: finding golang.org/x/text/unicode/norm latest
go: finding golang.org/x/text/width latest
go: finding golang.org/x/text/unicode latest
go: finding golang.org/x/text/secure latest
go: import "example.com/group/subgroup/project/cmd/mycmd" ->
        import "github.com/spf13/viper" ->
        import "github.com/spf13/afero" ->
        import "golang.org/x/text/transform": looping trying to add package

Same applies when I delete go.mod and start from scratch.

What did you expect to see?

no error

What did you see instead?

error "looping trying to add package"
Edit, with gotip: package provided by [packagename] at latest version vX.Y.Z but not at required version vX.Y.(Z+1)

But my main concern is:

I've read #30394 carefully but can't continue myself. I understand there might be tags/version conflicts in packages. But how can I solve them myself? Where to look? The error doesn't look like it's the source of the problem, how can I find the source issue?

@jayconrod

This comment has been minimized.

Copy link
Contributor

@jayconrod jayconrod commented Apr 16, 2019

Could you try this at tip? The error message has improved a bit since 1.12. If you see something about a package being provided at the latest version but not the required version, then this is a dup of #30394. If you still see "looping trying to add package", please post minimal example we can use to reproduce this.

I think with this particular repo, the problem is that the latest version v0.3.0 was tagged on 2017-12-09, and the package you need was added after that. go get -m golang.org/x/text/transform@master should give you a useful version.

@dionysius

This comment has been minimized.

Copy link
Author

@dionysius dionysius commented Apr 17, 2019

gotip indeed results in a different error:

        golang.org/x/text/transform: package provided by golang.org/x/text at latest version v0.3.0 but not at required version v0.3.1-0.20181227161524-e6919f6577db

lets see if I can find out who requires that version

@dionysius

This comment has been minimized.

Copy link
Author

@dionysius dionysius commented Apr 17, 2019

In the meantime I made a minimal example, but I'm also quite confused. I was able to reproduce my issue without even adding the problematic import above (haven't imported k8s' client-go package)

Example Repo: https://github.com/dionysius/go-issue-31487

$ gotip mod tidy
go: finding golang.org/x/text/transform latest
go: finding golang.org/x/text/unicode/norm latest
go: finding golang.org/x/text/unicode latest
go: github.com/dionysius/go-issue-31487 imports
        github.com/spf13/viper imports
        github.com/spf13/afero imports
        golang.org/x/text/transform: package provided by golang.org/x/text at latest version v0.3.0 but not at required version v0.3.1-0.20181227161524-e6919f6577db
@dionysius

This comment has been minimized.

Copy link
Author

@dionysius dionysius commented Apr 17, 2019

Here it is: https://github.com/kubernetes/apimachinery/blob/master/go.mod#L30 (for future lookups with commit id)

finding out where the import comes from

$ curl -sS golang.org/x/text?go-get=1 | grep 'name="go'
<meta name="go-import" content="golang.org/x/text git https://go.googlesource.com/text">
<meta name="go-source" content="golang.org/x/text https://github.com/golang/text/ https://github.com/golang/text/tree/master{/dir} https://github.com/golang/text/blob/master{/dir}/{file}#L{line}">

And the highest tag in https://github.com/golang/text and https://go.googlesource.com/text is v0.3.0 as of now.

So I go talk to the kubernetes devs ;)

But for here just a little improvement request maybe: We don't see in the error where the request to v0.3.1 is actually coming from, go mod graph returns no output in the minimal example

@dionysius

This comment has been minimized.

Copy link
Author

@dionysius dionysius commented Apr 17, 2019

Knowing the root cause the issue can be solved (for this current time) by referencing a tag of this repo where the go.mod is fine. e.g.

$ go mod edit -require k8s.io/apimachinery@kubernetes-1.13.5
$ go mod tidy
go: finding k8s.io/apimachinery kubernetes-1.13.5
go: downloading k8s.io/apimachinery v0.0.0-20190221213512-86fb29eff628
go: extracting k8s.io/apimachinery v0.0.0-20190221213512-86fb29eff628

or as suggested earlier, running go get -m golang.org/x/text@master gives me a "useful version", which indeed works, but I don't know how or from where the tag v0.3.1 is coming... Anyway, this way also works.

$ go get -m golang.org/x/text@master
go: finding golang.org/x/text master
$ go mod tidy
go: downloading golang.org/x/text v0.3.1-0.20190410012825-f4905fbd45b6
go: extracting golang.org/x/text v0.3.1-0.20190410012825-f4905fbd45b6

Another observation/bug in go mod: (file go.mod and go.sum deleted first) In my example, when I only have the import of k8s.io/apimachinery/pkg/util/uuid with the func DoUUID(), I have no error with go mod tidy, but e.g. k8s.io/apimachinery still has the wrong version in its go.mod, shouldn't that also error? or - why does it not?

In the meantime I made a minimal example, but I'm also quite confused. I was able to reproduce my issue without even adding the problematic import above (haven't imported k8s' client-go package)

Confusion can now be explained myself: The original project repo exists since longer and thus the go.mod state is from somewhere long before 12 days ago. 12 days ago the kubernetes source got the faulty go.mod entry. And it happened to break now, since I started a new feature requiring a new import, thus go mod trying to resolve the newest tag of this repo.

--

Anyway, you can consider this issue closed if you don't want to investigate further about the other usage observations (source of the version conflict not shown [previous comment] , no error when the issue go.mod is the only imported repo using the faulty reference [this comment])

@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Apr 17, 2019

not at required version v0.3.1-0.20181227161524-e6919f6577db

That's odd, because that package actually does exist at that revision:
https://github.com/golang/text/blob/e6919f6577db79269a6443b9dc46d18f2238fb5d/transform/transform.go#L9

@dionysius

This comment has been minimized.

Copy link
Author

@dionysius dionysius commented Apr 17, 2019

That's odd, because that package actually does exist at that revision

Yes and no. Yes, this issue is not about a missing package (so it's no dup of #30394). The no part is, that the version v0.3.1-0 is made up by go mod there.

On my followup issue on the kubernetes repo I got a good answer pointing me to the right direction (I didn't know about that):

It's actually v0.3.1-0 which is go's way or[sic] expressing "a commit after v0.3.0 that is not on a tag".

See https://tip.golang.org/cmd/go/#hdr-Pseudo_versions

From there:

[...]
vX.Y.(Z+1)-0.yyyymmddhhmmss-abcdefabcdef is used when the most recent versioned commit before the target commit is vX.Y.Z.

Pseudo-versions never need to be typed by hand: the go command will accept the plain commit hash and translate it into a pseudo-version (or a tagged version if available) automatically.

So what we basically have here, is, that go mod "made up" a version there, and my go mod - as a consumer of that lib - doesn't handle that correctly. It's up to you if this behaviour is intended. Hard guess: This issue doesn't happen often, because it happens probably only when the "made up" version is after the last tagged one and another import pointing to a correctly existing tag - so the dependency "look up" part/mode gets confused. Because the issue is not present, [if the import of the "made up" version is the only ever import using it #31487#issuecomment-484020406 (somewhere in the middle)

If I do the here already suggested go get -m golang.org/x/text@master, my go.mod file would also contain a v0.3.1-0-... entry. On which my eventual consumer would probably face the same issue again.

@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Apr 17, 2019

Using a pseudo-version for an untagged commit is fine and expected. The pseudo-version is (at least supposed to be) a well-defined semver prerelease string for the next possible release version, and MVS should sort it as such. The fact that it's made up shouldn't matter.

However, sometimes there are bugs (like #30634) relating to how we treat the latest tagged version when we're ahead of it. Something similar is probably happening here.

An error message indicating that that commit does not contain a package that it clearly does contain is definitely a bug. We should fix that bug.

It's not obvious to me whether there is some other bug involved.

@bcmills bcmills changed the title cmd/go: 'looping trying to add package' when running 'mod tidy' - how to debug myself? cmd/go: spurious 'package provided […] but not at required version' error May 8, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented May 8, 2019

That's odd, because that package actually does exist at that revision:

Whatever the cause of the failure, I can no longer reproduce it.

go-issue-31487$ gotip mod tidy
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/sirupsen/logrus v1.4.1
go: finding k8s.io/apimachinery v0.0.0-20190416092415-3370b4aef5d6
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/stretchr/objx v0.1.1
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
go: finding github.com/spf13/pflag v1.0.1
go: finding github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/hashicorp/golang-lru v0.5.0
go: finding github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415
go: finding k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
go: finding golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: finding sigs.k8s.io/yaml v1.1.0
go: finding github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
go: finding github.com/google/uuid v1.0.0
go: finding github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3
go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
go: finding github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be
go: finding github.com/modern-go/reflect2 v1.0.1
go: finding github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding golang.org/x/net v0.0.0-20190206173232-65e2d4e15006
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding k8s.io/klog v0.0.0-20190306015804-8e90cee79f82
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding gopkg.in/inf.v0 v0.9.0
go: finding github.com/hpcloud/tail v1.0.0
go: finding golang.org/x/sys v0.0.0-20190312061237-fead79001313
go: finding github.com/onsi/ginkgo v1.6.0
go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
go: downloading k8s.io/apimachinery v0.0.0-20190416092415-3370b4aef5d6
go: finding github.com/spf13/viper v1.3.2
go: extracting k8s.io/apimachinery v0.0.0-20190416092415-3370b4aef5d6
go: downloading github.com/google/uuid v1.0.0
go: extracting github.com/google/uuid v1.0.0
go: downloading github.com/spf13/viper v1.3.2
go: extracting github.com/spf13/viper v1.3.2
go: finding golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a
go: finding github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6
go: finding github.com/coreos/go-semver v0.2.0
go: finding github.com/coreos/go-etcd v2.0.0+incompatible
go: finding github.com/coreos/etcd v3.3.10+incompatible
go: finding github.com/hashicorp/hcl v1.0.0
go: finding github.com/magiconair/properties v1.8.0
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/pelletier/go-toml v1.2.0
go: finding github.com/spf13/cast v1.3.0
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/spf13/afero v1.1.2
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8
go: finding github.com/spf13/jwalterweatherman v1.0.0
go: finding github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77
go: finding golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: extracting github.com/spf13/afero v1.1.2
go: extracting github.com/fsnotify/fsnotify v1.4.7
go: extracting gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/magiconair/properties v1.8.0
go: extracting github.com/spf13/cast v1.3.0
go: extracting github.com/spf13/pflag v1.0.3
go: downloading golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: extracting github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/stretchr/testify v1.2.2
go: downloading golang.org/x/sys v0.0.0-20190312061237-fead79001313
go: downloading gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: extracting github.com/hashicorp/hcl v1.0.0
go: extracting github.com/pelletier/go-toml v1.2.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: extracting github.com/magiconair/properties v1.8.0
go: extracting github.com/stretchr/testify v1.2.2
go: extracting gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: downloading github.com/pmezard/go-difflib v1.0.0
go: extracting github.com/davecgh/go-spew v1.1.1
go: extracting github.com/pmezard/go-difflib v1.0.0
go: finding github.com/BurntSushi/toml v0.3.1
go: downloading github.com/BurntSushi/toml v0.3.1
go: extracting github.com/BurntSushi/toml v0.3.1
go: extracting golang.org/x/sys v0.0.0-20190312061237-fead79001313
go: extracting golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db

go-issue-31487$ gotip list -m golang.org/x/text
golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db

go-issue-31487$ gotip version
go version devel +dc0388c5 Tue May 7 18:42:17 2019 +0000 linux/amd64

I'm going to close this issue, but if you spot another instance of the not at required version error for a version that actually does contain the package in question, please file a new issue.

@bcmills bcmills closed this May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.