主页 > 苹果版下载imtoken > 使用 glide 安装 go ethereum 依赖和 tendermint 依赖
使用 glide 安装 go ethereum 依赖和 tendermint 依赖
苹果版下载imtoken 2023-03-05 07:36:02
使用 glide 安装 go ethereum 依赖和 tendermint 依赖
以太坊
使用 glide 安装 go ethereum 依赖和 tendermint 依赖是我的 glide.yaml: package: github.com/my-projectimport:- package: github.com/ethereum/go-ethereum version: 1.8.14 subpackages: - cmd/utils - common - common/hexutil - consensus/ethash-核心核心/状态核心
我正在使用“glide”来管理我的 go 包如何生成以太坊相似地址,这是我的 glide.yaml:
package: github.com/my-project
import:
- package: github.com/ethereum/go-ethereum
version: 1.8.14
subpackages:
- cmd/utils
- common
- common/hexutil
- consensus/ethash
- core
- core/state
- core/types
- core/vm
- eth
- ethdb
- event
- log
- node
- p2p
- params
- rlp
- rpc
- package: github.com/tendermint/tendermint
version: 0.23.0
subpackages:
- abci/types
- libs/log
- rpc/lib/client
- package: gopkg.in/urfave/cli.v1
testImport:
- package: github.com/stretchr/testify
subpackages:
- assert
- package: github.com/tendermint/go-amino
当我运行 glide install 时,出现一些错误:
[INFO] --> Fetching updates for github.com/mattn/go-colorable
[INFO] --> Fetching updates for github.com/huin/goupnp
[INFO] --> Fetching updates for github.com/jackpal/go-nat-pmp
[ERROR] Error scanning github.com/prometheus/prometheus/util/flock:
cannot find package "." in:
/root/.glide/cache/src/https-github.com-prometheus- prometheus/util/flock
[INFO] --> Fetching updates for github.com/elastic/gosigar
[INFO] --> Fetching updates for github.com/mohae/deepcopy
[INFO] --> Fetching updates for github.com/influxdata/influxdb
所以我尝试将 glide mirror 更改为我的本地文件(我已经克隆了所有依赖项)但是它仍然不起作用,如果有人知道如何处理它如何生成以太坊相似地址,请帮助我,谢谢
我明白了,只是设置镜像,忽略一些包,像这样
glide mirror set https://golang.org/x/mobile https://github.com/golang/mobile --vcs git
glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto --vcs git
....
忽视
- github.com/prometheus/prometheus/util/flock
- golang.org/x/sys/cpu
- golang.org/x/net/http2/hpack
- github.com/prometheus/prometheus/util/flock
- golang.org/x/sys/cpu
- golang.org/x/net/http2/hpack