-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Hello, when I used make I got error:
slovik@nbkpcsi713:~/pgpool2_exporter$ make
go: errors parsing go.mod:
pgpool2_exporter/go.mod:5: unknown directive: toolchain
make: *** [Makefile:24: promu] Error 1
Before changes in go.mod:
module github.com/pgpool/pgpool2_exporter
go 1.22
toolchain go1.22.1
require (
github.com/blang/semver v3.5.1+incompatible
github.com/go-kit/log v0.2.1
github.com/golang/protobuf v1.5.3 // indirect
github.com/lib/pq v1.10.2
github.com/prometheus/client_golang v1.15.1
github.com/prometheus/common v0.44.0
github.com/prometheus/procfs v0.9.0 // indirect
golang.org/x/sys v0.9.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
)
....
After changes in go.mod (delete toolchain go1.22.1 - is okay)
module github.com/pgpool/pgpool2_exporter
go 1.22
require (
github.com/blang/semver v3.5.1+incompatible
github.com/go-kit/log v0.2.1
github.com/golang/protobuf v1.5.3 // indirect
github.com/lib/pq v1.10.2
github.com/prometheus/client_golang v1.15.1
github.com/prometheus/common v0.44.0
github.com/prometheus/procfs v0.9.0 // indirect
golang.org/x/sys v0.9.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
)
...
make
building binaries
pgpool2_exporter
Have a nice day!
Simon