Coder Social home page Coder Social logo

Comments (2)

lazytooo avatar lazytooo commented on August 20, 2024 1

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 .

from goc.

chenmin032 avatar chenmin032 commented on August 20, 2024

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

麻烦问一下,最后面怎么解决的?

from goc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.