I am running into the following error, while trying to run bazel run //:parse -- generate -rpwd-s 3rdparty/workspace.bzl -d dependencies.yaml. It happens because this project depends on version 3.8.0 of com_google_protobuf which in turn depends on zlib. The particular zlib url used in version 3.8.0 is no longer active.
ERROR: An error occurred during the fetch of repository 'zlib':
Traceback (most recent call last):
File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/b26ed7439bb0d97834fc365137090839/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /home/ubuntu/.cache/bazel/_bazel_ubuntu/b26ed7439bb0d97834fc365137090839/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/b26ed7439bb0d97834fc365137090839/external/com_google_protobuf/BUILD:148:11: @com_google_protobuf//:protobuf depends on @zlib//:zlib in repository @zlib which failed to fetch. no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /home/ubuntu/.cache/bazel/_bazel_ubuntu/b26ed7439bb0d97834fc365137090839/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
Adding the following in your workspace file should fix the issue
I am running into the following error, while trying to run
bazel run //:parse -- generate -r
pwd-s 3rdparty/workspace.bzl -d dependencies.yaml
. It happens because this project depends on version 3.8.0 of com_google_protobuf which in turn depends on zlib. The particular zlib url used in version 3.8.0 is no longer active.Adding the following in your workspace file should fix the issue