chore: upgrade zlib to 1.3.1 (#17029)

`zlib` cannot be complied in macos (https://github.com/madler/zlib/pull/895).
This PR wants to upgrade zlib to 1.3.1 to avoid this issue.

Closes #17029

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/17029 from HerrCai0907:update/zlib fd6c66ba1c
PiperOrigin-RevId: 644108726
pull/17106/head
Congcong Cai 7 months ago committed by Copybara-Service
parent 115b4c4f83
commit 3d36855bd2
  1. 2
      MODULE.bazel
  2. 8
      protobuf_deps.bzl

@ -23,7 +23,7 @@ bazel_dep(name = "rules_pkg", version = "0.7.0")
bazel_dep(name = "rules_python", version = "0.28.0")
bazel_dep(name = "rules_rust", version = "0.45.1")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "zlib", version = "1.2.11")
bazel_dep(name = "zlib", version = "1.3.1")
# TODO: remove after toolchain types are moved to protobuf
bazel_dep(name = "rules_proto", version = "4.0.0")

@ -54,11 +54,11 @@ def protobuf_deps():
http_archive(
name = "zlib",
build_file = Label("//:third_party/zlib.BUILD"),
sha256 = "d14c38e313afc35a9a8760dadf26042f51ea0f5d154b0630a31da0540107fb98",
strip_prefix = "zlib-1.2.13",
sha256 = "38ef96b8dfe510d42707d9c781877914792541133e1870841463bfa73f883e32",
strip_prefix = "zlib-1.3.1",
urls = [
"https://github.com/madler/zlib/releases/download/v1.2.13/zlib-1.2.13.tar.xz",
"https://zlib.net/zlib-1.2.13.tar.xz",
"https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.xz",
"https://zlib.net/zlib-1.3.1.tar.xz",
],
)

Loading…
Cancel
Save