I'm new in Go language. I want to test some code in Go language some code in Go language by using this command go run main.go
.
I have this error: cannot find module providing package github.com/perlin-network/noise/crypto/ed25519
I tried to install it using:
go get github.com/perlin-network/noise/crypto/ed25519
I get this error:
go: finding github.com/perlin-network/noise/crypto/ed25519 latest
go: finding github.com/perlin-network/noise/crypto latest
go get github.com/perlin-network/noise/crypto/ed25519: no matching versions for query "latest"
I also have tried this:
go get -u github.com/perlin-network/noise
The error:
go: finding github.com/oasislabs/ed25519 latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/xerrors latest
go: finding golang.org/x/crypto latest
go: github.com/oasislabs/ed25519@v0.0.0-20210505154701-76d8c688d86e: parsing go.mod: unexpected module path "github.com/oasisprotocol/ed25519"
go: finding golang.org/x/net latest
go get: error loading module requirements
Did I miss something?
This is currently mentioned in perlin-network/noise
issue 287 , since Aug. 2020, without any answer for now (Q2 2021).
An alternative would be to:
perlin-network/noise
me/noise
go mod replace
in your project, to switch repositories. But all that suggests your own project uses go mod , so make sure to go init myproject
first, in order to benefit from those dependencies management feature.
That way, no need to $GOPATH/src
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.