istanbul-tools
istanbul-tools copied to clipboard
Project build issues
There are these errors when trying to build the project with "make" command:
cmd/istanbul/main.go:37: cannot use extra.ExtraCommand (type "github.com/getamis/istanbul-tools/vendor/github.com/urfave/cli".Command) as type "github.com/urfave/cli".Command in array or slice literal cmd/istanbul/main.go:38: cannot use setup.SetupCommand (type "github.com/getamis/istanbul-tools/vendor/github.com/urfave/cli".Command) as type "github.com/urfave/cli".Command in array or slice literal cmd/istanbul/main.go:39: cannot use []"github.com/urfave/cli".Command literal (type []"github.com/urfave/cli".Command) as type []"github.com/getamis/istanbul-tools/vendor/github.com/urfave/cli".Command in assignment make: *** [istanbul] Error 2
the following still works: go get github.com/getamis/istanbul-tools/cmd/istanbul
, however then it is installed under $GOPATH.
Thank you, it helped me to install istanbul-tools under $GOPATH. However it when I try to use it it does not seem to work properly. For example in my Mac i get this:
$ istanbul --help Killed: 9
or this
$ istanbul extra encode --config ./config.toml Killed: 9
Hi @AndriianChestnykh, I'm experiencing that same problem - have you found a solution?
Setting the build flags worked for me
go get -ldflags=-s github.com/getamis/istanbul-tools/cmd/istanbul
Apparently, this is no longer an issue with go 1.8.1
Reference: https://github.com/shirou/gopsutil/issues/339
I had the same issue. The compiled file was in the go binaries. On Mac, these are found in:
/Users/[YOURUSERNAME]/go/bin/
Adding this line to your bash profile should make them accessible.
# manually added Istanbul-Consensus Tools
export PATH="/Users/[YOURUSERNAME]/go/bin:$PATH"
Hope this helps the next one looking for a solution!
I'm still facing an issue in it. I use UBUNTU 16.04. I tried exporting the $PATH and setting the build flags too.