Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
evehal opened this issue Nov 13, 2020 · 4 comments
Open

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

evehal opened this issue Nov 13, 2020 · 4 comments

Comments

@evehal
Copy link

evehal commented Nov 13, 2020

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
Copy link

spaceming commented Jan 5, 2023

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
Copy link

Lei2050 commented Mar 7, 2023

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

@spaceming
Copy link

spaceming commented Mar 7, 2023 via email

@Lei2050
Copy link

Lei2050 commented Mar 8, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants