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
goc build --center="http://quanbu-qa.szzhijing.com/goc" --agentport=:9999 --buildflags="-race -ldflags '-X main.Version=72e99d8'" -o ./build/ .
FATA Fail to build: fail to generate new go.mod: /var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/go.mod:3: invalid go version '1.22.0': must match format 1.23
make: *** [build] Error 1
The text was updated successfully, but these errors were encountered:
For exmple:
Fail to build: fail to generate new go.mod: /var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/go.mod
First clone the project, then open /var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/ copy the project's go.mod to the corresponding path according to the file path, and then query the following code globally: os.RemoveAll(b.TmpDir), comment this line like // os.RemoveAll(b.TmpDir) recompile, find the goc compiled file, and replace it goc in the $GOPATH/bin folder, re-use goc run .
举例:
Fail to build: fail to generate new go.mod: /var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/go.mod
先克隆项目,然后打开文件夹/var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/,将项目的go.mod复制到当前路径,然后全局查询下面代码:os.RemoveAll(b.TmpDir),注释这一行,// os.RemoveAll(b.TmpDir),重新编译,找到goc编译文件,替换掉/bin文件夹下的goc,重新使用goc run .
goc build --center="http://quanbu-qa.szzhijing.com/goc" --agentport=:9999 --buildflags="-race -ldflags '-X main.Version=72e99d8'" -o ./build/ . FATA Fail to build: fail to generate new go.mod: /var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/go.mod:3: invalid go version '1.22.0': must match format 1.23 make: *** [build] Error 1
goc build --center="http://quanbu-qa.szzhijing.com/goc" --agentport=:9999 --buildflags="-race -ldflags '-X main.Version=72e99d8'" -o ./build/ .
FATA Fail to build: fail to generate new go.mod: /var/folders/ch/bmt18d9j7fl3c24g_t27hmpm0000gn/T/goc-build-7db62eca8474/go.mod:3: invalid go version '1.22.0': must match format 1.23
make: *** [build] Error 1
The text was updated successfully, but these errors were encountered: