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

go.mode - make error #38

Open
slowikDevOps opened this issue Mar 12, 2024 · 0 comments
Open

go.mode - make error #38

slowikDevOps opened this issue Mar 12, 2024 · 0 comments

Comments

@slowikDevOps
Copy link

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

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