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

undefined: os.ReadFile #14

Open
micah opened this issue Jul 28, 2022 · 1 comment
Open

undefined: os.ReadFile #14

micah opened this issue Jul 28, 2022 · 1 comment

Comments

@micah
Copy link
Contributor

micah commented Jul 28, 2022

When I try to install, I'm getting the following:

GOPATH=/usr go get github.com/r3kzi/clamav-prometheus-exporter
# github.com/prometheus/procfs/internal/util
usr/src/github.com/prometheus/procfs/internal/util/parse.go:69:15: undefined: os.ReadFile
usr/src/github.com/prometheus/procfs/internal/util/parse.go:78:15: undefined: os.ReadFile
usr/src/github.com/prometheus/procfs/internal/util/readfile.go:36:9: undefined: io.ReadAll
@micah
Copy link
Contributor Author

micah commented Jul 29, 2022

This is solved by using a newer version of go, and instead doing:

GOPATH=/usr go install github.com/r3kzi/clamav-prometheus-exporter@latest

Perhaps the README.md should be updated to indicate the minimal version and these instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant