Я пытаюсь запустить go-ethereum@v1.0.0 на моей машине с Windows.
Что я делаю:
cd G:\go
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum/cmd/geth
git checkout tags/v1.0.0 -b v1.0.0
go mod init github.com/ethereum/go-ethereum/cmd/geth
go run .
Я надеюсь, что мод go поможет мне установить все модули, но встречаем ошибку:
package github.com/ethereum/go-ethereum/cmd/geth: unknown import path "github.com/ethereum/go-ethereum/cmd/geth": ambiguous import: found github.com/ethereum/go-ethereum/cmd/geth in multiple modules:
github.com/ethereum/go-ethereum/cmd/geth (G:\go\go-ethereum\cmd\geth)
github.com/ethereum/go-ethereum v1.8.23 (G:\GOPATH\pkg\mod\github.com\ethereum\go-ethereum@v1.8.23\cmd\geth)
Я думаю, это потому, что cmd / geth существует в $ GOPATH и $ PWD оба.Как я могу решить, что это может работать успешно?
PS: Я надеюсь, что он использует $ PWD, чтобы я мог изменить его.