qiniu / goc

A Comprehensive Coverage Testing System for The Go Programming Language
Apache License 2.0
817 stars 117 forks source link

当构建项目使用软连的时候失败 #239

Open hanjk1234 opened 3 years ago

hanjk1234 commented 3 years ago

构建项目的时候如果使用软连 ,就比较尴尬 比如 软连目录是 /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

ltdonglei commented 2 years ago

你好,怎么解决呢