Skip to content
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

Closed
songdony opened this issue Sep 10, 2019 · 20 comments
Labels
go.mod Issues related to go modules more info requsted question

Comments

@songdony
Copy link

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.

@milosgajdos milosgajdos added go.mod Issues related to go modules question labels Sep 10, 2019
@milosgajdos
Copy link
Contributor

Unfortunately this is not enough information to work with.

Can you provide the output of the command you run? Also, what version of go are you running?

@sswanv
Copy link

sswanv commented Sep 10, 2019

Unfortunately, I also encountered this problem, my go version is 1.12.7

@aaronstaves
Copy link

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)

@asim
Copy link
Member

asim commented Sep 10, 2019

If you are not using go modules please use Go version 1.13

@songdony
Copy link
Author

go version go1.12.9 windows/amd64

@asim
Copy link
Member

asim commented Sep 11, 2019

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.

@songdony
Copy link
Author

However I tried to update 1.13,it also occurs this problem.

@Himanshuxone
Copy link

@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.

@songdony
Copy link
Author

did you resolve

I have solved it.The ways:
1.Reset the Go Path
2.Put the go.mod in a new project and enable Go Modules;
3.Run " go mod download";
4.Run " go get -u github.com/micro/go-micro";

@baxiang
Copy link

baxiang commented Sep 19, 2019

$mkdir -p $GOPATH/src/github.com/micro
$cd !$
$git clone https://github.com/micro/go-micro.git
$go mod download
verifying github.com/lucas-clemente/quic-go@v0.12.0: checksum mismatch
downloaded: h1:TRbvZ6F++sofeGbh+Z2IIyIOhl8KyGnYuA06g2yrHdI=
go.sum: h1:dYHUyB50gEQlK3KqytmNySzuyzAcaQ3iuI2ZReAfVrE=
$rm go.sum
$go mod download

@leeyongda
Copy link

golang version 1.12.9

go build main.go

build fail panic error

cannot load crypto/ed25519: cannot find module providing package crypto/ed25519

golang 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.13

2. use golang < 1.13 && go-micro <= 1.8.2 && go get -u github.com/micro/go-micro@v1.8.2

@Himanshuxone
Copy link

tried everything still not resolved

@amelkikh
Copy link

amelkikh commented Oct 3, 2019

tried everything still not resolved

Try to use package github.com/gogo/protobuf/proto instead github.com/golang/protobuf/proto
It seems like it helped me.

@oussaki
Copy link

oussaki commented Oct 4, 2019

having the same issue here.

package crypto/ed25519: unrecognized import path "crypto/ed25519" (import path does not begin with hostname)

@sennajox
Copy link

sennajox commented Oct 5, 2019

did you resolve

I have solved it.The ways:
1.Reset the Go Path
2.Put the go.mod in a new project and enable Go Modules;
3.Run " go mod download";
4.Run " go get -u github.com/micro/go-micro";

Hi, did you fix it by following these steps after upgrading to go 1.13 ? or still with go 1.12 ?
and which version the go-micro is ?
i've tried go-micro v1.9.1 and v1.11.0 with go 1.12, not work...
@songdony

@sennajox
Copy link

sennajox commented Oct 6, 2019

did you resolve

I have solved it.The ways:
1.Reset the Go Path
2.Put the go.mod in a new project and enable Go Modules;
3.Run " go mod download";
4.Run " go get -u github.com/micro/go-micro";

Hi, did you fix it by following these steps after upgrading to go 1.13 ? or still with go 1.12 ?
and which version the go-micro is ?
i've tried go-micro v1.9.1 and v1.11.0 with go 1.12, not work...
@songdony

well, it's fixed by upgrading to go 1.13

@mitra42
Copy link

mitra42 commented Jan 4, 2020

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.

@Himanshuxone
Copy link

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.

@mitra42
Copy link

mitra42 commented Jan 7, 2020

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 GO111MODULE=on go get -u -v github.com/ipfs/ipfs-update to GO111MODULE=on go get -v github.com/ipfs/ipfs-update. I don't know if that will work for other situations.

@sezzna
Copy link

sezzna commented Jan 23, 2020

clientconn.go:49:2: use of internal package google.golang.org/grpc/internal/resolver/dns not allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go.mod Issues related to go modules more info requsted question
Projects
None yet
Development

No branches or pull requests