xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.53k stars 450 forks source link

can not install goworld,win10/go version go1.13.4 windows/amd64 #103

Open evehal opened 3 years ago

evehal commented 3 years ago

C:\Users\86186>go get github.com/xiaonanln/goworld/cmd/... go: finding golang.org/x/sys latest go: finding golang.org/x/net latest go: finding github.com/StackExchange/wmi latest go: finding github.com/kardianos/osext latest

github.com/xiaonanln/goworld/cmd/goworld/process

go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\cmd\goworld\process\process_win.go:12:37: cannot use windows.Signal(sig) (type windows.Signal) as type syscall.Signal in argument to p.Process.SendSignal

C:\Users\86186>go get github.com/xiaonanln/goworld go: finding golang.org/x/net latest go: finding gopkg.in/mgo.v2 latest go: finding github.com/StackExchange/wmi latest go: finding github.com/kardianos/osext latest

github.com/xiaonanln/goworld/engine/kvdb/backend/kvdbrediscluster

go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\kvdb\backend\kvdbrediscluster\kvdb_redis_cluster.go:36:3: cannot use c (type redis.Cluster) as type redis.Cluster in field value: redis.Cluster is pointer to interface, not interface go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\kvdb\backend\kvdbrediscluster\kvdb_redis_cluster.go:44:20: db.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\kvdb\backend\kvdbrediscluster\kvdb_redis_cluster.go:81:16: db.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\kvdb\backend\kvdbrediscluster\kvdb_redis_cluster.go:92:16: db.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\kvdb\backend\kvdbrediscluster\kvdb_redis_cluster.go:121:6: db.c.Close undefined (type redis.Cluster is pointer to interface, not interface)

github.com/xiaonanln/goworld/engine/storage/backend/redis_cluster

go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:39:3: cannot use c (type redis.Cluster) as type redis.Cluster in field value: redis.Cluster is pointer to interface, not interface go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:56:24: not enough arguments in call to redis.Values go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:56:29: es.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:77:24: not enough arguments in call to redis.Values go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:77:29: es.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:95:15: es.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:100:23: not enough arguments in call to redis.Bytes go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:100:28: es.c.Do undefined (type redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:113:27: not enough arguments in call to redis.Bool go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:113:32: es.c.Do undefined (type *redis.Cluster is pointer to interface, not interface) go\pkg\mod\github.com\xiaonanln\goworld@v0.1.6\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:113:27: too many errors

spaceming commented 1 year ago

Same question: PS C:\Code\GoProject\src\goworld> go install github.com/xiaonanln/goworld/cmd/...

cmd\goworld\process\process_win.go:12:23: cannot use windows.Signal(sig) (value of type windows.Signal) as type syscall.Signal in argument to p.Process.SendSignal

I change the code then it can work well: p.Process.SendSignal(sig)

My os version is Win10 and go version is 1.18.4

Lei2050 commented 1 year ago

The same compilation error occurs on my windows10, go version go1.19.3 windows/amd64

spaceming commented 1 year ago

邮件己收到,感谢您的来信!

Lei2050 commented 1 year ago

The reason for this complilation error is that the library "github.com/chasex/redis-go-cluster" is deprecated. And "github.com/chasex/redis-go-cluster" has been replaced by "github.com/wuxibin89/redis-go-cluster". The old method is still used in source code. And it puzzled me.