构建项目的时候如果使用软连 ,就比较尴尬
比如 软连目录是 /tmp/go-build1634196769/src/git.xiaosankeji.com/guarana/spiderman
实际目录: /home/xiaosan/spiderman
ERRO[2021-10-14T15:33:07+08:00][build/gomodules.go:38] Failed to Copy the folder from /tmp/go-build1634196769/src/git.xiaosankeji.com/guarana/spiderman to /tmp/goc-build-7fbd82088fef, the error is: symlink /home/xiaosan/spiderman /tmp/goc-build-7fbd82088fef: file exists
ERRO[2021-10-14T15:33:07+08:00][build/tmpfolder.go:49] Fail to move the project to temporary directory
FATA[2021-10-14T15:33:07+08:00][cmd/build.go:68] Fail to build: fail to generate new go.mod: open /tmp/goc-build-7fbd82088fef/go.mod: no such file or directory
构建项目的时候如果使用软连 ,就比较尴尬 比如 软连目录是 /tmp/go-build1634196769/src/git.xiaosankeji.com/guarana/spiderman
实际目录: /home/xiaosan/spiderman ERRO[2021-10-14T15:33:07+08:00][build/gomodules.go:38] Failed to Copy the folder from /tmp/go-build1634196769/src/git.xiaosankeji.com/guarana/spiderman to /tmp/goc-build-7fbd82088fef, the error is: symlink /home/xiaosan/spiderman /tmp/goc-build-7fbd82088fef: file exists ERRO[2021-10-14T15:33:07+08:00][build/tmpfolder.go:49] Fail to move the project to temporary directory FATA[2021-10-14T15:33:07+08:00][cmd/build.go:68] Fail to build: fail to generate new go.mod: open /tmp/goc-build-7fbd82088fef/go.mod: no such file or directory