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?
Hello everybody, get this vendoring error after go recomendation to make
go mod vendor
Also tried
go mod tidy
but it didnt help. Can anyone tell how can I resolve it?