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
cannot load github.com/gomodule/redigo #505
Comments
Are you using go mod, if not then that should fix this |
yes, i am using go mod. does any other methods to fix this? |
What does your go.mod look like for redigo? |
It looks like the existence of the tag
|
Try removing any mention of |
|
Your commands aren't quite right there @bensema it should be something like: $ go mod init github.com/stevenh/redis-test
go: creating new go.mod: module github.com/stevenh/redis-test
$ go get github.com/gomodule/redigo/redis
go: downloading github.com/gomodule/redigo v1.8.2
go: downloading github.com/gomodule/redigo/redis v0.0.0-do-not-use
go: found github.com/gomodule/redigo/redis in github.com/gomodule/redigo v1.8.2
$ more go.mod
module github.com/steveh/redis-test
go 1.14
require github.com/gomodule/redigo v1.8.2 // indirect |
Using Since you probably can't delete the |
Testing here I didn't need to use
Save with content: package main
import "fmt"
func main() {
p := redis.Pool{}
fmt.Println("vim-go", p)
}
|
I believe this has been answered, so going to close. Please do reopen if this is not the case. |
o, I got same problem I have tried By the way, I also tried
so, how to fix it?? |
I can't reproduce this here, but I have go1.15.5 Have you tried using the latest version of golang in case its a bug in go module support? Also what does |
try new version of golang? em..., maybe it's worth to try but when i google this problem at i got this error first time, i found many people have same problem with different version of golang, the way they shared who resolved this problem can't fix my problem. -_-||| my
|
If it's a bug in the module support of the version you're using update might fix it. The other thing to try is: |
I think it's not a bug in the module, and of course not my code's bug, because I just import
Is my computer broken??? |
I tried it in my
|
Your Using your example I also see:
Correcting package main
import (
"fmt"
_ "github.com/gomodule/redigo/redis"
)
func main() {
fmt.Println(`hello world`)
}
|
waow, it's fixed me, thank you~~~ 👍 |
build command-line-arguments: cannot load github.com/gomodule/redigo: module github.com/gomodule/redigo@latest found (v2.0.0+incompatible), but does not contain package github.com/gomodule/redigo
can anyone help?
go version 1.13.11
The text was updated successfully, but these errors were encountered: