gluster / gluster-prometheus

Gluster monitoring using Prometheus
GNU Lesser General Public License v2.1
119 stars 70 forks source link

go: inconsistent vendoring #194

Closed IvanTim closed 3 years ago

IvanTim commented 3 years ago

Hello everybody, get this vendoring error after go recomendation to make go mod vendor

wantim@wantim:~/go/src/github.com/gluster/gluster-prometheus$ go mod vendor -v
# github.com/BurntSushi/toml v0.3.1
## explicit
github.com/BurntSushi/toml
# github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
## explicit
github.com/beorn7/perks/quantile
# github.com/dgrijalva/jwt-go v3.1.0+incompatible
## explicit
github.com/dgrijalva/jwt-go
# github.com/fsnotify/fsnotify v1.4.7
## explicit
github.com/fsnotify/fsnotify
# github.com/gluster/glusterd2 v5.0.0-rc0.0.20181211075249-a9044cb33d93+incompatible
## explicit
github.com/gluster/glusterd2/pkg/api
github.com/gluster/glusterd2/pkg/errors
github.com/gluster/glusterd2/pkg/restclient
github.com/gluster/glusterd2/pkg/utils
github.com/gluster/glusterd2/plugins/bitrot/api
github.com/gluster/glusterd2/plugins/device/api
github.com/gluster/glusterd2/plugins/events/api
github.com/gluster/glusterd2/plugins/georeplication/api
github.com/gluster/glusterd2/plugins/glustershd/api
# github.com/golang/protobuf v1.2.0
## explicit
github.com/golang/protobuf/proto
# github.com/google/uuid v1.1.0
## explicit
github.com/google/uuid
# github.com/hashicorp/hcl v1.0.0
## explicit
github.com/hashicorp/hcl
github.com/hashicorp/hcl/hcl/ast
github.com/hashicorp/hcl/hcl/parser
github.com/hashicorp/hcl/hcl/printer
github.com/hashicorp/hcl/hcl/scanner
github.com/hashicorp/hcl/hcl/strconv
github.com/hashicorp/hcl/hcl/token
github.com/hashicorp/hcl/json/parser
github.com/hashicorp/hcl/json/scanner
github.com/hashicorp/hcl/json/token
# github.com/magiconair/properties v1.8.0
## explicit
github.com/magiconair/properties
# github.com/matttproud/golang_protobuf_extensions v1.0.1
## explicit
github.com/matttproud/golang_protobuf_extensions/pbutil
# github.com/mitchellh/mapstructure v1.1.2
## explicit
github.com/mitchellh/mapstructure
# github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709
## explicit
github.com/pborman/uuid
# github.com/pelletier/go-toml v1.2.0
## explicit
github.com/pelletier/go-toml
# github.com/prometheus/client_golang v0.8.0
## explicit
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/promhttp
# github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
## explicit
github.com/prometheus/client_model/go
# github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
## explicit
github.com/prometheus/common/expfmt
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/prometheus/common/model
# github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
## explicit
github.com/prometheus/procfs
github.com/prometheus/procfs/internal/util
github.com/prometheus/procfs/nfs
github.com/prometheus/procfs/xfs
# github.com/sirupsen/logrus v1.0.6
## explicit
github.com/sirupsen/logrus
# github.com/spf13/afero v1.1.2
## explicit
github.com/spf13/afero
github.com/spf13/afero/mem
# github.com/spf13/cast v1.3.0
## explicit
github.com/spf13/cast
# github.com/spf13/jwalterweatherman v1.0.0
## explicit
github.com/spf13/jwalterweatherman
# github.com/spf13/pflag v1.0.3
## explicit
github.com/spf13/pflag
# github.com/spf13/viper v1.0.3
## explicit
github.com/spf13/viper
# golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9
## explicit
golang.org/x/crypto/ssh/terminal
# golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
## explicit
# golang.org/x/sys v0.0.0-20181210030007-2a47403f2ae5
## explicit
golang.org/x/sys/unix
golang.org/x/sys/windows
# golang.org/x/text v0.3.0
## explicit
golang.org/x/text/transform
golang.org/x/text/unicode/norm
# gopkg.in/airbrake/gobrake.v2 v2.0.9
## explicit
# gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
## explicit
# gopkg.in/yaml.v2 v2.2.2
## explicit
gopkg.in/yaml.v2
wantim@wantim:~/go/src/github.com/gluster/gluster-prometheus$ PREFIX=/usr make
Go1.9 or later is available on the system.

dep package is available
gometalinter package is available

Installing vendored packages
(1/27) Wrote gopkg.in/yaml.v2@v2.2.2
(2/27) Wrote github.com/BurntSushi/toml@v0.3.1
(3/27) Wrote github.com/magiconair/properties@v1.8.0
(4/27) Wrote github.com/pelletier/go-toml@v1.2.0
(5/27) Wrote github.com/prometheus/common@master
(6/27) Wrote github.com/sirupsen/logrus@v1.0.6
(7/27) Wrote github.com/matttproud/golang_protobuf_extensions@v1.0.1
(8/27) Wrote github.com/prometheus/procfs@master
(9/27) Wrote github.com/prometheus/client_golang@v0.8.0
(10/27) Wrote github.com/dgrijalva/jwt-go@v3.1.0
(11/27) Wrote github.com/fsnotify/fsnotify@v1.4.7
(12/27) Wrote github.com/google/uuid@v1.1.0
(13/27) Wrote github.com/golang/protobuf@v1.2.0
(14/27) Wrote github.com/hashicorp/hcl@v1.0.0
(15/27) Wrote github.com/gluster/glusterd2@master
(16/27) Wrote github.com/mitchellh/mapstructure@v1.1.2
(17/27) Wrote github.com/pborman/uuid@v1.2
(18/27) Wrote github.com/beorn7/perks@master
(19/27) Wrote github.com/prometheus/client_model@master
(20/27) Wrote github.com/spf13/afero@v1.1.2
(21/27) Wrote github.com/spf13/cast@v1.3.0
(22/27) Wrote github.com/spf13/jwalterweatherman@v1.0.0
(23/27) Wrote github.com/spf13/pflag@v1.0.3
(24/27) Wrote github.com/spf13/viper@v1.0.3
(25/27) Wrote golang.org/x/crypto@master
(26/27) Wrote golang.org/x/sys@master
(27/27) Wrote golang.org/x/text@v0.3.0

FASTBUILD=yes BASE_PREFIX="" GD1STATEDIR=""/var/lib/glusterd \
        CONFFILE=""/etc/gluster-exporter/gluster-exporter.toml \
        GD2STATEDIR=""/var/lib/glusterd2 ./scripts/build.sh gluster-exporter
Building gluster-exporter v0.3-dev.93.git3ebaacc
go: inconsistent vendoring in /home/wantim/go/src/github.com/gluster/gluster-prometheus:
        github.com/BurntSushi/toml@v0.3.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/beorn7/perks@v0.0.0-20180321164747-3a771d992973: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/dgrijalva/jwt-go@v3.1.0+incompatible: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/fsnotify/fsnotify@v1.4.7: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/gluster/glusterd2@v5.0.0-rc0.0.20181211075249-a9044cb33d93+incompatible: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/golang/protobuf@v1.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/google/uuid@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/hashicorp/hcl@v1.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/magiconair/properties@v1.8.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/matttproud/golang_protobuf_extensions@v1.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/mitchellh/mapstructure@v1.1.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/pborman/uuid@v0.0.0-20180906182336-adf5a7427709: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/pelletier/go-toml@v1.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/prometheus/client_golang@v0.8.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/prometheus/client_model@v0.0.0-20180712105110-5c3871d89910: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/prometheus/common@v0.0.0-20181126121408-4724e9255275: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/prometheus/procfs@v0.0.0-20181204211112-1dc9a6cbc91a: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/sirupsen/logrus@v1.0.6: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/spf13/afero@v1.1.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/spf13/cast@v1.3.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/spf13/jwalterweatherman@v1.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/spf13/pflag@v1.0.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/spf13/viper@v1.0.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        golang.org/x/crypto@v0.0.0-20181203042331-505ab145d0a9: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        golang.org/x/sys@v0.0.0-20181210030007-2a47403f2ae5: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        golang.org/x/text@v0.3.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        gopkg.in/airbrake/gobrake.v2@v2.0.9: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        gopkg.in/gemnasium/logrus-airbrake-hook.v2@v2.1.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        gopkg.in/yaml.v2@v2.2.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
                go mod vendor
make: *** [Makefile:66: build/gluster-exporter] Error 1

Also tried go mod tidy but it didnt help. Can anyone tell how can I resolve it?