ismsm
ismsm

Reputation: 173

Cannot find module providing package ed25519 in Go language

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/[email protected]: 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?

Upvotes: 0

Views: 5591

Answers (1)

VonC
VonC

Reputation: 1324248

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:

  • fork the repository perlin-network/noise
  • update the dependency in the fork me/noise
  • use 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.

Upvotes: 1

Related Questions