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

package net/netip is not in GOROOT #946

Open
Davidrjx opened this issue Jun 17, 2024 · 2 comments
Open

package net/netip is not in GOROOT #946

Davidrjx opened this issue Jun 17, 2024 · 2 comments
Labels

Comments

@Davidrjx
Copy link

Davidrjx commented Jun 17, 2024

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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/model/labels/regexp.go:19:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/grafana/[email protected]/lint/rule_target_job_instance.go:6:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/chacha20poly1305/chacha20poly1305_generic.go:10:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/google/[email protected]/internal/record/internal/aeadcrypter/chachapoly.go:25:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/chacha20/chacha_generic.go:15:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/chacha20poly1305/chacha20poly1305_generic.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/model/labels/labels_common.go:22:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/html/node.go:8:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/http2/frame.go:18:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/http/httpguts/httplex.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/google.golang.org/[email protected]/option/option.go:13:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/deviceauth.go:14:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/proc_maps.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/grafana/[email protected]/lint/rule_template_datasource.go:7:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/language/coverage.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/language/language.go:16:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/internal/internal.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/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/[email protected]/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/[email protected]
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/[email protected]/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/[email protected]/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/[email protected]
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/cmd/promtool/unittest.go:29:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/discovery/consul/consul.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/discovery/nomad/nomad.go:26:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/klauspost/[email protected]/zstd/blockdec.go:18:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/tsdb/wlog/live_reader.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/discovery/dns/dns.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/config/config.go:36:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/scaleway/[email protected]/api/baremetal/v1/baremetal_sdk.go:21:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/chacha20poly1305/chacha20poly1305_generic.go:10:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/google/[email protected]/internal/record/internal/aeadcrypter/chachapoly.go:25:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/chacha20/chacha_generic.go:15:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/chacha20poly1305/chacha20poly1305_generic.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/model/labels/labels_common.go:22:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/config/http_config.go:34:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/http2/frame.go:18:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/http/httpproxy/proxy.go:22:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/ipv4/control.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/ipv4/batch.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/miekg/[email protected]/udp.go:9:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/miekg/[email protected]/udp.go:10:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/go-resty/resty/[email protected]/resty.go:13:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/discovery/gce/gce.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/deviceauth.go:14:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/web/tls_config.go:30:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/proc_maps.go:27:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/k8s.io/[email protected]/plugin/pkg/client/auth/exec/exec.go:35:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/linode/[email protected]/waitfor.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/language/coverage.go:11:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/language/language.go:16:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/internal/internal.go:12:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/golang.org/x/[email protected]/cases/map.go:19:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/k8s.io/[email protected]/plugin/pkg/client/auth/exec/exec.go:48:2: //go:build comment without // +build comment
../../go_1.16_path/pkg/mod/github.com/prometheus/[email protected]/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/[email protected]/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
Copy link
Author

#946 (comment), as a result, so that package net/netip does not exist in golang version 1.16.15

Copy link

github-actions bot commented Sep 4, 2024

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

  • The stale label will be removed if there is new activity * The issue will be closed in 2 days if there is no new activity * Add the keepalive label to exempt this issue from the stale check action
    Thank you for your contributions!

@github-actions github-actions bot added the stale label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant