bazeltools / bazel-deps

Generate bazel dependencies for maven artifacts
MIT License
249 stars 121 forks source link

Fix zlib issue #318

Closed Rahul-Bhardwaj2000 closed 1 year ago

Rahul-Bhardwaj2000 commented 1 year ago

I was 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.

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/BU
johnynek commented 1 year ago

sorry for the latency here!

Thanks for sending this!

I've merged https://github.com/bazeltools/bazel-deps/pull/314

which also has this fix so I'll close this one but I really appreciate you taking the time to send this and hope you'll continue to send PRs!