gluster_exporter icon indicating copy to clipboard operation
gluster_exporter copied to clipboard

Getting build error

Open prateekn opened this issue 4 years ago • 1 comments

Hi,

I m getting the following error when I try to build

vagrant@es1:~/work/src/github.com/gluster_exporter$ make build
>> ensure vendoring
>> vetting code
# github.com/gluster_exporter
./main.go:329:59: node.InodesTotal undefined (type struct { Hostname string "xml:\"hostname\""; Path string "xml:\"path\""; PeerID string "xml:\"peerid\""; Status int "xml:\"status\""; Port int "xml:\"port\""; Ports struct { TCP int "xml:\"tcp\""; RDMA string "xml:\"rdma\"" } "xml:\"ports\""; Pid int "xml:\"pid\""; SizeTotal uint64 "xml:\"sizeTotal\""; SizeFree uint64 "xml:\"sizeFree\""; Device string "xml:\"device\""; BlockSize int "xml:\"blockSize\""; MntOptions string "xml:\"mntOptions\""; FsName string "xml:\"fsName\"" } has no field or method InodesTotal)
./main.go:333:56: node.InodesFree undefined (type struct { Hostname string "xml:\"hostname\""; Path string "xml:\"path\""; PeerID string "xml:\"peerid\""; Status int "xml:\"status\""; Port int "xml:\"port\""; Ports struct { TCP int "xml:\"tcp\""; RDMA string "xml:\"rdma\"" } "xml:\"ports\""; Pid int "xml:\"pid\""; SizeTotal uint64 "xml:\"sizeTotal\""; SizeFree uint64 "xml:\"sizeFree\""; Device string "xml:\"device\""; BlockSize int "xml:\"blockSize\""; MntOptions string "xml:\"mntOptions\""; FsName string "xml:\"fsName\"" } has no field or method InodesFree)
Makefile:33: recipe for target 'vet' failed
make: *** [vet] Error 2

Please help

prateekn avatar May 05 '20 17:05 prateekn

use v0.2.7 to build

yangzhao-kl avatar Dec 07 '20 05:12 yangzhao-kl