You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
At the moment, the code doesn't check for module support unless you're building a local path - it assumes no module support is needed. This causes problems when modules are used in the target repo, or any of its dependencies. It also causes problems if dependencies use the /v2 suffix mechanism to differentiate between versions (usually in addition to SemVer, which Go didn't properly support until 1.11 modules were introduced). The workaround is to work on a local path, as you've discovered, until the code for xgo is updated to check for module support in remote paths as well.
If I clone a repository locally and run xgo on it, it generates a binary as expected:
However if I try to do the same thing with a referenced repository it fails:
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.
The text was updated successfully, but these errors were encountered: