When running dep ensure
on a large project it fails with the following error:
cannot Stat: stat <project>/vendor/github.com/prometheus/procfs/fixtures/self/fd/0: no such file or directory
How can I fix this?
When running dep ensure
on a large project it fails with the following error:
cannot Stat: stat <project>/vendor/github.com/prometheus/procfs/fixtures/self/fd/0: no such file or directory
How can I fix this?
There are known issues with dep
0.5 (latest at this time) which cause the error. There's no fix yet, but you can downgrade to 0.4 to get things working.
You can use the install script in the project repo and specify the desired version through an environment variable.
export DEP_RELEASE_TAG="v0.4.1"
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh