Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on building the latest master without GO111MODULE=on #125

Closed
tiero opened this issue Jan 24, 2019 · 4 comments
Closed

Error on building the latest master without GO111MODULE=on #125

tiero opened this issue Jan 24, 2019 · 4 comments

Comments

@tiero
Copy link

tiero commented Jan 24, 2019

Runnning go build it returns

# github.com/lightninglabs/neutrino
neutrino/neutrino.go:1206:4: cannot use sp.OnVersion (type func(*peer.Peer, *wire.MsgVersion) *wire.MsgReject) as type func(*peer.Peer, *wire.MsgVersion) in field value
neutrino/rescan.go:982:22: undefined: txscript.ComputePkScript
@tiero
Copy link
Author

tiero commented Jan 24, 2019

I have actually followed the steps in travis.yml and with both go build and go build ./... all exit without errors, but I cannot find the binaries 🤔 It is supposed to be used only as go package?

I suppose the correct way to run is to set env GO111MODULE=on.

But doing this way I cannot use gomobile to create bindings for iOS and Android. More info here

The only way for now to create binding with gomobile is to go back before the add of go modules

Being in neutrino folder

$ export GO111MODULE=off 
$ git checkout 641af1ca5561ffa3770e864e7bfee40f5da5d28a
$ gomobile bind -target=ios . 

@tiero tiero changed the title Error on building the latest master Error on building the latest master without GO111MODULE=on Jan 24, 2019
@Mimble-Wimble
Copy link

@tiero, how did you manage to set GO11MODULE to on? I keep receiving the following error:

warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;

@tiero
Copy link
Author

tiero commented Jan 30, 2019

@tiero, how did you manage to set GO11MODULE to on? I keep receiving the following error:

warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;

export GO111MODULE=on

Maybe your something override your path

@Mimble-Wimble
Copy link

Ahhhh, gotcha. Looks like that might be it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants