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

Unable to build against the latest version of github.com/prometheus/procfs #1307

Closed
shaardie opened this issue Apr 4, 2019 · 4 comments
Labels

Comments

@shaardie
Copy link
Contributor

shaardie commented Apr 4, 2019

Host operating system: output of uname -a

Linux marciano 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

Not compiling...but source code commit is 4d88761.

node_exporter command line flags

Are you running node_exporter in Docker?

What did you do that produced an error?

$ go get -u github.com/prometheus/procfs
$ make
>> checking code style
>> checking license header
>> running staticcheck
chmod +x /home/sven/devel/go/bin/staticcheck
GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
GO111MODULE=on /home/sven/devel/go/bin/staticcheck -ignore "" ./...
collector/xfs_linux.go:47:21: c.fs.XFSStats undefined (type sysfs.FS has no field or method XFSStats) (compile)
collector/nfsd_linux.go:60:21: c.fs.NFSdServerRPCStats undefined (type procfs.FS has no field or method NFSdServerRPCStats) (compile)
collector/nfs_linux.go:94:21: c.fs.NFSClientRPCStats undefined (type procfs.FS has no field or method NFSClientRPCStats) (compile)
collector/bcache_linux.go:52:21: c.fs.BcacheStats undefined (type sysfs.FS has no field or method BcacheStats) (compile)
collector/xfs_linux.go:47:21: c.fs.XFSStats undefined (type sysfs.FS has no field or method XFSStats) (compile)
collector/nfsd_linux.go:60:21: c.fs.NFSdServerRPCStats undefined (type procfs.FS has no field or method NFSdServerRPCStats) (compile)
collector/nfs_linux.go:94:21: c.fs.NFSClientRPCStats undefined (type procfs.FS has no field or method NFSClientRPCStats) (compile)
collector/bcache_linux.go:52:21: c.fs.BcacheStats undefined (type sysfs.FS has no field or method BcacheStats) (compile)
collector/xfs_linux.go:47:21: c.fs.XFSStats undefined (type sysfs.FS has no field or method XFSStats) (compile)
collector/nfsd_linux.go:60:21: c.fs.NFSdServerRPCStats undefined (type procfs.FS has no field or method NFSdServerRPCStats) (compile)
collector/nfs_linux.go:94:21: c.fs.NFSClientRPCStats undefined (type procfs.FS has no field or method NFSClientRPCStats) (compile)
collector/bcache_linux.go:52:21: c.fs.BcacheStats undefined (type sysfs.FS has no field or method BcacheStats) (compile)
collector/xfs_linux.go:47:21: c.fs.XFSStats undefined (type sysfs.FS has no field or method XFSStats) (compile)
collector/nfsd_linux.go:60:21: c.fs.NFSdServerRPCStats undefined (type procfs.FS has no field or method NFSdServerRPCStats) (compile)
collector/nfs_linux.go:94:21: c.fs.NFSClientRPCStats undefined (type procfs.FS has no field or method NFSClientRPCStats) (compile)
collector/bcache_linux.go:52:21: c.fs.BcacheStats undefined (type sysfs.FS has no field or method BcacheStats) (compile)
collector/xfs_linux.go:47:21: c.fs.XFSStats undefined (type sysfs.FS has no field or method XFSStats) (compile)
collector/nfsd_linux.go:60:21: c.fs.NFSdServerRPCStats undefined (type procfs.FS has no field or method NFSdServerRPCStats) (compile)
collector/nfs_linux.go:94:21: c.fs.NFSClientRPCStats undefined (type procfs.FS has no field or method NFSClientRPCStats) (compile)
collector/bcache_linux.go:52:21: c.fs.BcacheStats undefined (type sysfs.FS has no field or method BcacheStats) (compile)
collector/xfs_linux.go:47:21: c.fs.XFSStats undefined (type sysfs.FS has no field or method XFSStats) (compile)
collector/nfsd_linux.go:60:21: c.fs.NFSdServerRPCStats undefined (type procfs.FS has no field or method NFSdServerRPCStats) (compile)
collector/nfs_linux.go:94:21: c.fs.NFSClientRPCStats undefined (type procfs.FS has no field or method NFSClientRPCStats) (compile)
collector/bcache_linux.go:52:21: c.fs.BcacheStats undefined (type sysfs.FS has no field or method BcacheStats) (compile)
make: *** [Makefile.common:162: common-staticcheck] Error 1

What did you expect to see?

Successful compiling

What did you see instead?

Problems to compile against the latest procfs.

@SuperQ
Copy link
Member

SuperQ commented Apr 4, 2019

We're doing a bunch of refactoring in the procfs library right now. It should be done soon and we'll update the node_exporter's procfs library.

/cc @pgier

@pgier
Copy link
Contributor

pgier commented Apr 29, 2019

Currently waiting for prometheus/procfs#149 to be merged, and then I will create a PR to update node_exporter to use the re-factored API.

@discordianfish
Copy link
Member

Hrmm but I don't understand why it fails to build. We should have the right versions vendored.

@SuperQ
Copy link
Member

SuperQ commented May 7, 2019

Closed with #1335

@SuperQ SuperQ closed this as completed May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants