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

[BUG] inet.af/netaddr无法下载导致server编译失败 #6382

Closed
1 task done
asdfsx opened this issue May 10, 2024 · 1 comment
Closed
1 task done

[BUG] inet.af/netaddr无法下载导致server编译失败 #6382

asdfsx opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@asdfsx
Copy link
Contributor

asdfsx commented May 10, 2024

DeepFlow Component

Server

What you expected to happen

编译server时,依赖inet.af/netaddr无法下载,报错内容为

github.com/deepflowio/deepflow/server/controller/election imports
        k8s.io/client-go/tools/leaderelection tested by
        k8s.io/client-go/tools/leaderelection.test imports
        k8s.io/client-go/tools/record imports
        github.com/golang/groupcache/lru: inet.af/netaddr@v0.0.0-20211027220019-c74959edd3b6: unrecognized import path "inet.af/netaddr": https fetch: Get "https://inet.af/netaddr?go-get=1": dial tcp: lookup inet.af on 8.8.8.8:53: no such host 

导致该问题的原因可以在 https://github.com/inetaf 看到

目前我的解决办法时在go.mod 上增加replace设置

replace inet.af/netaddr => github.com/inetaf/netaddr v0.0.0-20211027220019-c74959edd3b6

Code of Conduct

@asdfsx asdfsx added the bug Something isn't working label May 10, 2024
@sharang
Copy link
Member

sharang commented May 14, 2024

可通过调整编译环境解决,PR 6385 中已经去掉了 go mod replace

@sharang sharang closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants