techknowlogick / xgo

Go CGO cross compiler
MIT License
478 stars 79 forks source link

How to specify a repository when moudle is turned on (windows) #240

Open 15083787153 opened 8 months ago

15083787153 commented 8 months ago

this is my command: xgo git.woa.com/CloudBusinessManage/cbm-baseservice-go

this is my workpath: D:\GoStudy\cbm-baseservice-go

this is my go.mod moudle: module git.woa.com/CloudBusinessManage/cbm-baseservice-go

this is error:

Checking for required docker image techknowlogick/xgo:latest... found.
Cross compiling non-local repository: git.woa.com/CloudBusinessManage/cbm-baseservice-go/server...
Fetching main repository git.woa.com/CloudBusinessManage/cbm-baseservice-go/server...
go: modules disabled by GO111MODULE=off; see 'go help modules'
/build.sh: line 114: cd: /go/src/git.woa.com/CloudBusinessManage/cbm-baseservice-go/server: No such file or directory
2024/03/19 10:42:29 Failed to cross compile package: exit status 1.