bazel 出现no such package '@org_tensorflow//tensorflow' 错误
问题
在执行 bazel tensorflow serving 的时候出现下面的错误
ERROR: error loading package ‘’: in /home/wangcongying/tools/serving/tensorflow_serving/workspace.bzl: Encountered error while reading extension file ‘tensorflow/workspace.bzl’: no such package ‘@org_tensorflow//tensorflow’: java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/27cfc615819dade9fcd8b9423a382da32f4f33f1.tar.gz, https://github.com/tensorflow/tensorflow/archive/27cfc615819dade9fcd8b9423a382da32f4f33f1.tar.gz] to /home/wangcongying/.cache/bazel/_bazel_wangcongying/bd6e5faa8ff97cd3832e6470da331b82/external/org_tensorflow/27cfc615819dade9fcd8b9423a382da32f4f33f1.tar.gz: All mirrors are down: [GET returned 404 Not Found, GET returned 502 Bad Gateway]
原因
可能是由于上一次build
失败遗留的文件,只需将其clen即可
解决
执行下面的命令:
$ bazel clean --expunge