evm-tools icon indicating copy to clipboard operation
evm-tools copied to clipboard

Installation error

Open jrhe opened this issue 3 years ago • 1 comments

Following the install instructions I get the following errors on make install.

> make install
go: cannot find main module, but found Gopkg.lock in /Users/jon/go/src/github.com/CoinCulture/evm-tools
	to create a module there, run:
	go mod init
go: cannot find main module, but found Gopkg.lock in /Users/jon/go/src/github.com/CoinCulture/evm-tools
	to create a module there, run:
	go mod init
make: *** [install] Error 1

I have tried running go mod init but it seems this messes up dependency management somehow with

> go mod init
go: creating new go.mod: module github.com/CoinCulture/evm-tools
go: copying requirements from Gopkg.lock
go: to add module requirements and sums:
	go mod tidy
> make install
go: inconsistent vendoring in /Users/jon/go/src/github.com/CoinCulture/evm-tools:
	github.com/ethereum/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/fatih/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/golang/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/google/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/hashicorp/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/pborman/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/rcrowley/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/rjeczalik/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/syndtr/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/karalabe/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/urfave/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/fatih/[email protected]: is replaced in go.mod, but not marked as replaced in vendor/modules.txt

	To ignore the vendor directory, use -mod=readonly or -mod=mod.
	To sync the vendor directory, run:
		go mod vendor
go: inconsistent vendoring in /Users/jon/go/src/github.com/CoinCulture/evm-tools:
	github.com/ethereum/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/fatih/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/golang/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/google/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/hashicorp/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/pborman/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/rcrowley/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/rjeczalik/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/syndtr/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/karalabe/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/urfave/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	gopkg.in/fatih/[email protected]: is replaced in go.mod, but not marked as replaced in vendor/modules.txt

	To ignore the vendor directory, use -mod=readonly or -mod=mod.
	To sync the vendor directory, run:
		go mod vendor
make: *** [install] Error 1

I expect it's probably to do with changes in the go compiler, and that there's an easy fix, but I'm unfamiliar with go and tinkering so far has been fruitless. Any help appreciated.

Thanks for the great EVM guide!

jrhe avatar Feb 24 '22 16:02 jrhe

same issues here

kevzettler avatar Jun 28 '22 04:06 kevzettler