a way to protect you 100% against the problem is to define your dependency as a link to a specific commit or tarball.