goworld icon indicating copy to clipboard operation
goworld copied to clipboard

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

Open evehal opened this issue 4 years ago • 4 comments

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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\engine\storage\backend\redis_cluster\entity_storage_redis_cluster.go:113:27: too many errors

evehal avatar Nov 13 '20 06:11 evehal

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

spaceming avatar Jan 05 '23 05:01 spaceming

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

Lei2050 avatar Mar 07 '23 09:03 Lei2050

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

spaceming avatar Mar 07 '23 09:03 spaceming

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.

Lei2050 avatar Mar 08 '23 07:03 Lei2050