在大型项目上运行 dep ensure
时失败并出现以下错误:
cannot Stat: stat <project>/vendor/github.com/prometheus/procfs/fixtures/self/fd/0: no such file or directory
我该如何解决这个问题?
最佳答案
有known issues dep
0.5(此时最新)导致错误。目前还没有修复,但您可以降级到 0.4 以使一切正常。
您可以使用项目仓库中的安装脚本,并通过环境变量指定所需的版本。
export DEP_RELEASE_TAG="v0.4.1"
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
关于go - 如何修复 Mac 上的 dep ensure 错误 'cannot stat file'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57977865/