-
Notifications
You must be signed in to change notification settings - Fork 305
Closed
Description
If I'm following the instructions for building the project there's a lot of dependencies that is missing.
After looking in the Makefile I realized that there's a bootstrap target that one can run to fetch most of the dependencies. This should be documented.
But even after those were installed there were still missing dependencies:
$ make install
scripts/update-gofmt.sh
scripts/verify-gofmt.sh
scripts/verify-golint.sh
scripts/verify-govet.sh
+ go vet . ./cmd/... ./manifest/...
vendor/k8s.io/api/core/v1/generated.pb.go:225:8: cannot find package "github.com/gogo/protobuf/proto" in any of:
/home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/github.com/gogo/protobuf/proto (vendor tree)
/usr/lib/go-1.12/src/github.com/gogo/protobuf/proto (from $GOROOT)
/home/freddeliv/go/src/github.com/gogo/protobuf/proto (from $GOPATH)
vendor/k8s.io/api/core/v1/generated.pb.go:235:8: cannot find package "github.com/gogo/protobuf/sortkeys" in any of:
/home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/github.com/gogo/protobuf/sortkeys (vendor tree)
/usr/lib/go-1.12/src/github.com/gogo/protobuf/sortkeys (from $GOROOT)
/home/freddeliv/go/src/github.com/gogo/protobuf/sortkeys (from $GOPATH)
vendor/k8s.io/apimachinery/pkg/labels/selector.go:26:2: cannot find package "github.com/golang/glog" in any of:
/home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/github.com/golang/glog (vendor tree)
/usr/lib/go-1.12/src/github.com/golang/glog (from $GOROOT)
/home/freddeliv/go/src/github.com/golang/glog (from $GOPATH)
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go:23:2: cannot find package "github.com/google/gofuzz" in any of:
/home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/github.com/google/gofuzz (vendor tree)
/usr/lib/go-1.12/src/github.com/google/gofuzz (from $GOROOT)
/home/freddeliv/go/src/github.com/google/gofuzz (from $GOPATH)
vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go:26:2: cannot find package "github.com/json-iterator/go" in any of:
/home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/github.com/json-iterator/go (vendor tree)
/usr/lib/go-1.12/src/github.com/json-iterator/go (from $GOROOT)
/home/freddeliv/go/src/github.com/json-iterator/go (from $GOPATH)
vendor/k8s.io/apimachinery/pkg/api/resource/amount.go:23:2: cannot find package "gopkg.in/inf.v0" in any of:
/home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/gopkg.in/inf.v0 (vendor tree)
/usr/lib/go-1.12/src/gopkg.in/inf.v0 (from $GOROOT)
/home/freddeliv/go/src/gopkg.in/inf.v0 (from $GOPATH)
make: *** [Makefile:28: lint] Error 1
And when looking at the glide output I can see that it installs github.com/golang/protobuf
$ make bootstrap
glide install --strip-vendor
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching github.com/aryann/difflib
[INFO] --> Fetching github.com/Masterminds/goutils
[INFO] --> Fetching github.com/spf13/pflag
[INFO] --> Fetching github.com/golang/protobuf
[INFO] --> Fetching github.com/huandu/xstrings
[INFO] --> Fetching github.com/imdario/mergo
[INFO] --> Fetching github.com/spf13/cobra
[INFO] --> Fetching github.com/ghodss/yaml
[INFO] --> Fetching golang.org/x/crypto
[INFO] --> Fetching golang.org/x/net
[INFO] --> Fetching github.com/BurntSushi/toml
[INFO] --> Fetching golang.org/x/sys
[INFO] --> Fetching github.com/google/uuid
[INFO] --> Fetching github.com/gobwas/glob
[INFO] --> Fetching github.com/Masterminds/sprig
[INFO] --> Fetching github.com/mgutz/ansi
[INFO] --> Fetching github.com/inconshreveable/mousetrap
[INFO] --> Fetching github.com/mattn/go-isatty
[INFO] --> Fetching github.com/Masterminds/semver
[INFO] --> Fetching github.com/mattn/go-colorable
[INFO] --> Fetching golang.org/x/text
[INFO] --> Fetching google.golang.org/genproto
[INFO] --> Fetching google.golang.org/grpc
[INFO] --> Fetching gopkg.in/yaml.v2
[INFO] --> Fetching k8s.io/api
[INFO] --> Fetching k8s.io/apimachinery
[INFO] --> Fetching k8s.io/client-go
[INFO] --> Fetching k8s.io/helm
[INFO] --> Fetching github.com/stretchr/testify
[INFO] --> Fetching github.com/pmezard/go-difflib
[INFO] --> Fetching github.com/davecgh/go-spew
[INFO] Setting references.
[INFO] --> Setting version for github.com/BurntSushi/toml to 3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005.
[INFO] --> Setting version for github.com/spf13/cobra to 615425954c3b0d9485a7027d4d451fdcdfdee84e.
[INFO] --> Setting version for github.com/inconshreveable/mousetrap to 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75.
[INFO] --> Setting version for github.com/Masterminds/semver to 517734cc7d6470c0d07130e40fd40bdeb9bcd3fd.
[INFO] --> Setting version for github.com/aryann/difflib to a1a4dd44eb11820695fbe83e00fb2301ee6eb54c.
[INFO] --> Setting version for github.com/golang/protobuf to b4deda0973fb4c70b50d226b1af49f3da59f5265.
[INFO] --> Setting version for github.com/google/uuid to 064e2069ce9c359c118179501254f67d7d37ba24.
[INFO] --> Setting version for github.com/gobwas/glob to 5ccd90ef52e1e632236f7326478d4faa74f99438.
[INFO] --> Setting version for github.com/mattn/go-isatty to fc9e8d8ef48496124e79ae0df75490096eccf6fe.
[INFO] --> Setting version for github.com/mgutz/ansi to 9520e82c474b0a04dd04f8a40959027271bab992.
[INFO] --> Setting version for github.com/Masterminds/sprig to 9f8fceff796fb9f4e992cd2bece016be0121ab74.
[INFO] --> Setting version for github.com/Masterminds/goutils to 41ac8693c5c10a92ea1ff5ac3a7f95646f6123b0.
[INFO] --> Setting version for github.com/spf13/pflag to 583c0c0531f06d5278b7d917446061adc344b5cd.
[INFO] --> Setting version for github.com/ghodss/yaml to 73d445a93680fa1a78ae23a5839bad48f32ba1ee.
[INFO] --> Setting version for github.com/mattn/go-colorable to ded68f7a9561c023e790de24279db7ebf473ea80.
[INFO] --> Setting version for github.com/imdario/mergo to 7c29201646fa3de8506f701213473dd407f19646.
[INFO] --> Setting version for github.com/huandu/xstrings to f02667b379e2fb5916c3cda2cf31e0eb885d79f8.
[INFO] --> Setting version for github.com/davecgh/go-spew to 782f4967f2dc4564575ca782fe2d04090b5faca8.
[INFO] --> Setting version for github.com/pmezard/go-difflib to d8ed2627bdf02c080bf22230dbb337003b7aba2d.
[INFO] --> Setting version for github.com/stretchr/testify to ffdc059bfe9ce6a4e144ba849dbedead332c6053.
[INFO] --> Setting version for golang.org/x/crypto to 49796115aa4b964c318aad4f3084fdb41e9aa067.
[INFO] --> Setting version for golang.org/x/sys to 95c6576299259db960f6c5b9b69ea52422860fce.
[INFO] --> Setting version for golang.org/x/net to 1c05540f6879653db88113bc4a2b70aec4bd491f.
[INFO] --> Setting version for golang.org/x/text to b19bf474d317b857955b12035d2c5acb57ce8b01.
[INFO] --> Setting version for k8s.io/apimachinery to 103fd098999dc9c0c88536f5c9ad2e5da39373ae.
[INFO] --> Setting version for k8s.io/api to 2d6f90ab1293a1fb871cf149423ebb72aa7423aa.
[INFO] --> Setting version for k8s.io/helm to 2e55dbe1fdb5fdb96b75ff144a339489417b146b.
[INFO] --> Setting version for k8s.io/client-go to 59698c7d9724b0f95f9dc9e7f7dfdcc3dfeceb82.
[INFO] --> Setting version for google.golang.org/genproto to d831d65fe17df2e52bcc4316d4a9f7a418701f43.
[INFO] --> Setting version for google.golang.org/grpc to 5ffe3083946d5603a0578721101dc8165b1d5b5f.
[INFO] --> Setting version for gopkg.in/yaml.v2 to 53feefa2559fb8dfa8d81baad31be332c97d6c77.
[INFO] Exporting resolved dependencies...
[INFO] --> Exporting github.com/aryann/difflib
[INFO] --> Exporting github.com/golang/protobuf
[INFO] --> Exporting github.com/Masterminds/goutils
[INFO] --> Exporting github.com/mgutz/ansi
[INFO] --> Exporting github.com/BurntSushi/toml
[INFO] --> Exporting github.com/ghodss/yaml
[INFO] --> Exporting github.com/google/uuid
[INFO] --> Exporting github.com/gobwas/glob
[INFO] --> Exporting github.com/imdario/mergo
[INFO] --> Exporting github.com/Masterminds/semver
[INFO] --> Exporting github.com/huandu/xstrings
[INFO] --> Exporting github.com/inconshreveable/mousetrap
[INFO] --> Exporting github.com/Masterminds/sprig
[INFO] --> Exporting github.com/mattn/go-isatty
[INFO] --> Exporting github.com/spf13/pflag
[INFO] --> Exporting github.com/mattn/go-colorable
[INFO] --> Exporting github.com/spf13/cobra
[INFO] --> Exporting github.com/davecgh/go-spew
[INFO] --> Exporting github.com/pmezard/go-difflib
[INFO] --> Exporting github.com/stretchr/testify
[INFO] --> Exporting golang.org/x/net
[INFO] --> Exporting golang.org/x/sys
[INFO] --> Exporting golang.org/x/crypto
[INFO] --> Exporting k8s.io/apimachinery
[INFO] --> Exporting k8s.io/api
[INFO] --> Exporting golang.org/x/text
[INFO] --> Exporting k8s.io/helm
[INFO] --> Exporting k8s.io/client-go
[INFO] --> Exporting google.golang.org/genproto
[INFO] --> Exporting google.golang.org/grpc
[INFO] --> Exporting gopkg.in/yaml.v2
[INFO] Replacing existing vendor dependencies
[INFO] Removing nested vendor and Godeps/_workspace directories...
[INFO] Removing: /home/freddeliv/go/src/github.com/databus23/helm-diff/vendor/github.com/stretchr/testify/vendor
command -v golint || go get -u golang.org/x/lint/golint
/usr/bin/golint
I'm running go version go1.12.10 linux/amd64
Metadata
Metadata
Assignees
Labels
No labels