Go 即使包存在,Dep init也会失败

Go 即使包存在,Dep init也会失败,go,dep,Go,Dep,我正在尝试使用dep打包一个go应用程序,并且在执行dep init时出现以下错误 我已经从这里安装了amcl库- 甚至下面的包也存在 nithin@XPS-L401X:~/go/src/github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN$ ls ARCH.go BIG.go DBIG.go ECDH.go ECP2.go ECP.go FP12.go FP2.go FP4.go FP.go MPIN.go PAI

我正在尝试使用
dep
打包一个
go
应用程序,并且在执行
dep init
时出现以下错误

我已经从这里安装了
amcl
库-

甚至下面的包也存在

nithin@XPS-L401X:~/go/src/github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN$ ls
ARCH.go  BIG.go  DBIG.go  ECDH.go  ECP2.go  ECP.go  FP12.go  FP2.go  FP4.go  FP.go  MPIN.go  PAIR.go  ROM.go
但我仍然得到了以下错误

init failed: unable to solve the dependency graph: Solving failure: No versions of github.com/milagro-crypto/amcl met constraints:
    281d0829b307c911bb2f14f2fedc414a257cb8c8: Could not introduce github.com/milagro-crypto/amcl@281d0829b307c911bb2f14f2fedc414a257cb8c8 due to multiple problematic subpackages:
    Subpackage github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)  Subpackage github.com/milagro-crypto/amcl/version3/go/amcl is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)
    master: Could not introduce github.com/milagro-crypto/amcl@master due to multiple problematic subpackages:
    Subpackage github.com/milagro-crypto/amcl/version3/go/amcl is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)  Subpackage github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)
    add-js-tests: Could not introduce github.com/milagro-crypto/amcl@add-js-tests due to multiple problematic subpackages:
    Subpackage github.com/milagro-crypto/amcl/version3/go/amcl is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)  Subpackage github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)
    fix-retval: Could not introduce github.com/milagro-crypto/amcl@fix-retval due to multiple problematic subpackages:
    Subpackage github.com/milagro-crypto/amcl/version3/go/amcl is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)  Subpackage github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)
    milagro-crypto-c: Could not introduce github.com/milagro-crypto/amcl@milagro-crypto-c due to multiple problematic subpackages:
    Subpackage github.com/milagro-crypto/amcl/version3/go/amcl/FP256BN is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)  Subpackage github.com/milagro-crypto/amcl/version3/go/amcl is missing. (Package is required by github.com/hyperledger/fabric@release-1.1.)
我找到了答案

首先
获取github.com/milagro crypto/amcl

然后将
cd
放入此位置(基于您的
$GOPATH
github.com/milagro crypto/amcl/version3/go

按照以下说明安装milagro

我建议一个接一个地安装所有选项,然后别忘了安装

go运行TestALL.go

go run BenchtestALL.go

否则它无法解决,idk为什么。

我找到了答案

首先
获取github.com/milagro crypto/amcl

然后将
cd
放入此位置(基于您的
$GOPATH
github.com/milagro crypto/amcl/version3/go

按照以下说明安装milagro

我建议一个接一个地安装所有选项,然后别忘了安装

go运行TestALL.go

go run BenchtestALL.go


否则它无法解决,idk为什么。

我有同样的问题我也有同样的问题