-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
build command-line-arguments: cannot load crypto/ed25519: cannot find module providing package crypto/ed2551 #748
Comments
Unfortunately this is not enough information to work with. Can you provide the output of the command you run? Also, what version of |
Unfortunately, I also encountered this problem, my go version is 1.12.7 |
I'm also seeing this as well: /go # go version
go version go1.12.4 linux/amd64
/go # go get -u github.com/micro/go-micro
package crypto/ed25519: unrecognized import path "crypto/ed25519" (import path does not begin with hostname) |
If you are not using go modules please use Go version 1.13 |
go version go1.12.9 windows/amd64 |
Please use Go version 1.13 as the change in library is related to the go version change. This is tracked by a third party depedency and if you are not using go modules we cannot effectively pin that. |
However I tried to update 1.13,it also occurs this problem. |
@songdony How did you resolve the same? I think so the error is with go.sum file of this crypto package. I have tried everything changed three versions still no success. |
I have solved it.The ways: |
$mkdir -p $GOPATH/src/github.com/micro |
golang version 1.12.9go build main.gobuild fail panic errorcannot load crypto/ed25519: cannot find module providing package crypto/ed25519golang version 1.13 std support "crypto/ed25519"golang version < 1.13 use "golang.org/x/crypto/ed25519" replace "crypto/ed25519"Suggest:1. use golang 1.132. use golang < 1.13 && go-micro <= 1.8.2 && go get -u github.com/micro/[email protected] |
tried everything still not resolved |
Try to use package github.com/gogo/protobuf/proto instead |
having the same issue here. package crypto/ed25519: unrecognized import path "crypto/ed25519" (import path does not begin with hostname) |
Hi, did you fix it by following these steps after upgrading to go 1.13 ? or still with go 1.12 ? |
well, it's fixed by upgrading to go 1.13 |
Unfortunately this is breaking existing docker files that include anything go-based :-( We are using ubuntu:rolling, and apt-get gets go 1.12, I'd be happy to upgrade to 1.13 but its not clear (to a non-go coder like me) how to go about doing that within a docker. |
There is a file go.sum and go.mod. In that file please delete all the lines with crypto package. and then run the docker. |
I've no idea how you would find those files in a docker installation. Someone posted a fix in ipfs/ipfs-update#114 which worked for us, which was to change command line from |
clientconn.go:49:2: use of internal package google.golang.org/grpc/internal/resolver/dns not allowed |
When I run the go-micro,it tips build command-line-arguments: cannot load crypto/ed25519: cannot find module providing package crypto/ed25519,but i find the module is exists in gopath.
The text was updated successfully, but these errors were encountered: