-
Notifications
You must be signed in to change notification settings - Fork 125
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 find package "github.com/cespare/xxhash/v2" #34
Comments
Same here. |
See #31 You need to be using go 1.11 or newer, what version of go are you running? |
@reneba as @superfell said, you need to be using a recent enough version of Go that it has at least "minimal module compatibility". See the README. (You do not actually even need 1.11 -- 1.9.7+ and 1.10.3+ have the functionality backported.) The key thing is that these versions of Go understand that when they are looking for /v2, they should find that in a v2 branch. @Thiamath no, it is not "broken". See my explanation above. In fact, I just confirmed that I can build all the packages in https://github.com/prometheus/client_golang using Go 1.9.7. By the way, any Go project that wants to use my package is free to use the v1 module ( |
Sorry for the delay... |
Use
if
is not set
then try again |
@rohankeskar19 Thank you for saving my day! [Rose] |
hi,
first. sorry for my english :)
I am relatively new to go programming. but I wanted to deal with it. I wanted to get the following code to work because I deal with go and go-ethereum.
But I always get the error below
Despite intensive google search and my meager english knowledge I could not find a solution. Unfortunately,
I do not know anybody who knows about go.
Maybe you can help me
Many thanks
--Error-
src\github.com\VictoriaMetrics\fastcache\bigcache.go:7:2: cannot find package "github.com/cespare/xxhash/v2" in any of: C:\Go\src\github.com\cespare\xxhash\v2 (from $GOROOT) C:\Users\go\src\github.com\cespare\xxhash\v2 (from $GOPATH)
--Code--
`package main
import (
"context"
"fmt"
"log"
"math"
"math/big"
)
func main() {
client, err := ethclient.Dial("https://mainnet.infura.io")
if err != nil {
log.Fatal(err)
}
}`
The text was updated successfully, but these errors were encountered: