Skip to content

Modules issue building locally vs from reference #84

@mcdee

Description

@mcdee

If I clone a repository locally and run xgo on it, it generates a binary as expected:

git clone git@github.com:wealdtech/ethdo
cd ethdo
xgo --targets="windows/amd64" .

However if I try to do the same thing with a referenced repository it fails:

xgo --targets="windows/amd64" github.com/wealdtech/ethdo

The main difference appears to be that the former sets GO111MODULE to on and the latter sets GO111MODULE to off. The repository uses the go module system, so unsure why this is happening. If you could shed any light on this issue it would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions