open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[Other]: <Pull the code again and build error reminder>

Open LJFDBXJ opened this issue 1 year ago • 5 comments

What would you like to share?

ncpu.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id !!! Error in ./scripts/build-all-service.sh:34 Error in ./scripts/build-all-service.sh:34. 'cpu_count=$(go run .)' exited with status 1 Call stack: 1: ./scripts/build-all-service.sh:34 main(...) Exiting with status 1

Additional information

No response

LJFDBXJ avatar Feb 03 '24 11:02 LJFDBXJ

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

kubbot avatar Feb 03 '24 11:02 kubbot

不是 bug 就是 构建 会提醒 golang.org/x/[email protected] requires golang.org/x/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id !!! Error in ./scripts/build-all-service.sh:34 Error in ./scripts/build-all-service.sh:34. 'cpu_count=$(go run .)' exited with status 1 Call stack: 1: ./scripts/build-all-service.sh:34 main(...) Exiting with status 1

LJFDBXJ avatar Feb 03 '24 12:02 LJFDBXJ

配置了 阿里 和七牛 都不行。

===========> Building binary openim-msgtransfer v3.5.1-alpha.1-41-g093b3f640 for linux_amd64 pkg/common/cmd/api.go:20:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/cmd/rpc.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/cmd/root.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/message_handler.go:27:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/hub_server.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/message_handler.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/client.go:30:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/client.go:31:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/hub_server.go:25:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/callback.go:22:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/client.go:34:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/message_handler.go:24:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msggateway/long_conn.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/authverify/token.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/authverify/token.go:25:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/msgprocessor/conversation.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/config/config.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/callbackstruct/user.go:19:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/cache/user.go:31:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/cache/init_redis.go:28:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/cache/black.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/cache/msg.go:29:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/table/relation/black.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/table/relation/utils.go:19:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/cache/black.go:22:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/cache/msg.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/prommetrics/prommetrics.go:18:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/ginprometheus/ginprometheus.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/ginprometheus/ginprometheus.go:27:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/ginprometheus/ginprometheus.go:28:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/prommetrics/prommetrics.go:20:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/startrpc/start.go:44:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/startrpc/start.go:45:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/discoveryregister/kubernetes/kubernetes.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/discoveryregister/kubernetes/kubernetes.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/discoveryregister/zookeeper/zookeeper.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/startrpc/start.go:39:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/auth.go:22:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/conversation.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/friend.go:22:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/group.go:24:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/third.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/third.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/rpcclient/third.go:22:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msgtransfer/online_history_msg_handler.go:28:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/msgtransfer/online_history_msg_handler.go:29:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/controller/conversation.go:27:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/s3/cont/controller.go:29:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/unrelation/mongo.go:24:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/unrelation/msg.go:31:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/unrelation/mongo.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/db/mgo/black.go:20:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id internal/tools/cron_task.go:26:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/cmd/api.go:21:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id pkg/common/cmd/root.go:23:2: github.com/OpenIMSDK/[email protected]: verifying go.mod: invalid GOSUMDB: malformed verifier id make[1]: *** [scripts/make-rules/golang.mk:151: go.build.linux_amd64.openim-msgtransfer] Error 1 make: *** [Makefile:84: build] Error 2 这些 总是不成功

LJFDBXJ avatar Feb 03 '24 19:02 LJFDBXJ

问题解决了 最终的解决方案 还是代理原因 配置了 系统go 代理 不行 直接 配置 go 环境的代理可以 如下配置 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct go env -w GOSUMDB=sum.golang.org

LJFDBXJ avatar Feb 04 '24 02:02 LJFDBXJ

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The problem is solved. The final solution is still due to the proxy. Configuring the system go proxy does not work. Directly configuring the go environment proxy can be configured as follows. go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct go env -w GOSUMDB=sum.golang.org

kubbot avatar Feb 04 '24 02:02 kubbot

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot avatar Apr 04 '24 08:04 kubbot

This issue was closed because it has been stalled for 7 days with no activity.

kubbot avatar Apr 12 '24 08:04 kubbot