kubernetes-monitoring / kubernetes-mixin

A set of Grafana dashboards and Prometheus alerts for Kubernetes.
Apache License 2.0
2.08k stars 597 forks source link

package net/netip is not in GOROOT #946

Open Davidrjx opened 2 months ago

Davidrjx commented 2 months ago

run instruction below, an error shows

Installing tools from hack/tools.go
go build -mod=mod -o /home/renjianxin/kubernetes-mixin/tmp/bin github.com/google/go-jsonnet/cmd/jsonnet
../../go_1.16_path/pkg/mod/github.com/mattn/go-isatty@v0.0.19/isatty_tcgets.go:7:8: //go:build comment without // +build comment
go build -mod=mod -o /home/renjianxin/kubernetes-mixin/tmp/bin github.com/google/go-jsonnet/cmd/jsonnet-lint
../../go_1.16_path/pkg/mod/github.com/mattn/go-isatty@v0.0.19/isatty_tcgets.go:7:8: //go:build comment without // +build comment
go build -mod=mod -o /home/renjianxin/kubernetes-mixin/tmp/bin github.com/google/go-jsonnet/cmd/jsonnetfmt
../../go_1.16_path/pkg/mod/github.com/mattn/go-isatty@v0.0.19/isatty_tcgets.go:7:8: //go:build comment without // +build comment
go build -mod=mod -o /home/renjianxin/kubernetes-mixin/tmp/bin github.com/grafana/dashboard-linter
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/model/labels/regexp.go:19:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/grafana/dashboard-linter@v0.0.0-20231114210226-c458893a5731/lint/rule_target_job_instance.go:6:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/crypto@v0.16.0/chacha20poly1305/chacha20poly1305_generic.go:10:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/google/s2a-go@v0.1.7/internal/record/internal/aeadcrypter/chachapoly.go:25:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/crypto@v0.16.0/chacha20/chacha_generic.go:15:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/crypto@v0.16.0/chacha20poly1305/chacha20poly1305_generic.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/model/labels/labels_common.go:22:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/html/node.go:8:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/http2/frame.go:18:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/http/httpguts/httplex.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/google.golang.org/api@v0.153.0/option/option.go:13:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/oauth2@v0.15.0/deviceauth.go:14:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/procfs@v0.11.1/proc_maps.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/grafana/dashboard-linter@v0.0.0-20231114210226-c458893a5731/lint/rule_template_datasource.go:7:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/language/coverage.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/language/language.go:16:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/internal/internal.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/cases/map.go:19:2: //go:build comment without // +build comment
go build -mod=mod -o /home/renjianxin/kubernetes-mixin/tmp/bin github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
../../go_1.16_path/pkg/mod/github.com/mattn/go-isatty@v0.0.19/isatty_tcgets.go:7:8: //go:build comment without // +build comment
go build -mod=mod -o /home/renjianxin/kubernetes-mixin/tmp/bin github.com/prometheus/prometheus/cmd/promtool
package github.com/prometheus/prometheus/cmd/promtool
        imports github.com/prometheus/prometheus/config
        imports github.com/prometheus/prometheus/storage/remote/azuread
        imports github.com/Azure/azure-sdk-for-go/sdk/azcore: build constraints exclude all Go files in /home/renjianxin/go_1.16_path/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.9.0
package github.com/prometheus/prometheus/cmd/promtool
        imports github.com/prometheus/prometheus/plugins
        imports github.com/prometheus/prometheus/discovery/azure
        imports github.com/Azure/azure-sdk-for-go/sdk/azcore/arm: build constraints exclude all Go files in /home/renjianxin/go_1.16_path/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.9.0/arm
package github.com/prometheus/prometheus/cmd/promtool
        imports github.com/prometheus/prometheus/plugins
        imports github.com/prometheus/prometheus/discovery/azure
        imports github.com/Azure/azure-sdk-for-go/sdk/azcore/to: build constraints exclude all Go files in /home/renjianxin/go_1.16_path/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azcore@v1.9.0/to
package github.com/prometheus/prometheus/cmd/promtool
        imports github.com/prometheus/prometheus/config
        imports github.com/prometheus/prometheus/storage/remote/azuread
        imports github.com/Azure/azure-sdk-for-go/sdk/azidentity: build constraints exclude all Go files in /home/renjianxin/go_1.16_path/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.4.0
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/cmd/promtool/unittest.go:29:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/discovery/consul/consul.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/discovery/nomad/nomad.go:26:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/klauspost/compress@v1.17.4/zstd/blockdec.go:18:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/tsdb/wlog/live_reader.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/discovery/dns/dns.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/config/config.go:36:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/scaleway/scaleway-sdk-go@v1.0.0-beta.21/api/baremetal/v1/baremetal_sdk.go:21:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/crypto@v0.16.0/chacha20poly1305/chacha20poly1305_generic.go:10:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/google/s2a-go@v0.1.7/internal/record/internal/aeadcrypter/chachapoly.go:25:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/crypto@v0.16.0/chacha20/chacha_generic.go:15:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/crypto@v0.16.0/chacha20poly1305/chacha20poly1305_generic.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/model/labels/labels_common.go:22:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/common@v0.45.0/config/http_config.go:34:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/http2/frame.go:18:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/http/httpproxy/proxy.go:22:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/ipv4/control.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/net@v0.19.0/ipv4/batch.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/miekg/dns@v1.1.57/udp.go:9:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/miekg/dns@v1.1.57/udp.go:10:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/go-resty/resty/v2@v2.10.0/resty.go:13:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/discovery/gce/gce.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/oauth2@v0.15.0/deviceauth.go:14:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/exporter-toolkit@v0.10.0/web/tls_config.go:30:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/procfs@v0.11.1/proc_maps.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/k8s.io/client-go@v0.28.4/plugin/pkg/client/auth/exec/exec.go:35:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/linode/linodego@v1.25.0/waitfor.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/language/coverage.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/language/language.go:16:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/internal/internal.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/text@v0.14.0/cases/map.go:19:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/k8s.io/client-go@v0.28.4/plugin/pkg/client/auth/exec/exec.go:48:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/prometheus@v0.49.1/discovery/ovhcloud/dedicated_server.go:19:2: package net/netip is not in GOROOT (/usr/local/go1.16.15/go/src/net/netip)
../../go_1.16_path/pkg/mod/sigs.k8s.io/json@v0.0.0-20221116044647-bc3834ca7abd/json.go:24:2: //go:build comment without // +build comment
make: *** [Makefile:77: /home/renjianxin/kubernetes-mixin/tmp/bin/jsonnet] Error 123

go env: go1.16.15

Davidrjx commented 2 months ago

https://github.com/kubernetes-monitoring/kubernetes-mixin/issues/946#issue-2356259782, as a result, so that package net/netip does not exist in golang version 1.16.15

github-actions[bot] commented 3 days ago

This issue has not had any activity in the past 30 days, so the stale label has been added to it.