r3kzi / clamav-prometheus-exporter

Prometheus-Exporter for ClamAV
Apache License 2.0
26 stars 21 forks source link

undefined: os.ReadFile #14

Open micah opened 2 years ago

micah commented 2 years ago

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 commented 2 years ago

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.