karalabe / xgo

Go CGO cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xgo --targets=linux/amd64 .

yangjun0039 opened this issue · comments

go: writing go.sum: open /ext-go/1/src/work/go.sum268164157.tmp: read-only file system
2020/03/10 18:44:53 Failed to cross compile package: exit status 1.

commented

Can I ask what happened/what the fix was. Seeing same thing and trying to figure it out.

I'm seeing this as well.

execute the following to resolve:
go mod tidy

@yangjun0039 what Go version are you running? After to switching to 1.13.x it started to work for me.

go 1.13.8
and you can also cross-compile by docker, not xgo