Skip to content

Commit

Permalink
[install][fix][ApolloAuto#14374][ApolloAuto#14387] Fix zlib downloadi…
Browse files Browse the repository at this point in the history
…ng error

[Synopsis] The new version of `zlib` - zlib-1.2.12 is released (https://zlib.net/zlib-1.2.12.tar.gz), the previous version of `zlib` became unavailable (https://zlib.net/zlib-1.2.11.tar.gz)

[Solution]
Get the previous `zlib` version from `zlib/archive`

[IMP] It would definitely be better to cherry-pick the fix (ApolloAuto#14387) from the vanilla Apollo

[Error log] `./apollo.sh build`
```
...
(10:53:17) ERROR: /apollo/modules/localization/msf/local_pyramid_map/base_map/BUILD:22:11: //modules/localization/msf/local_pyramid_map/base_map:base_map_matrix 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 /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/zlib/temp165233950568194062/zlib-1.2.11.tar.gz: GET returned 404 Not Found
(10:53:17) ERROR: Analysis of target '//modules/localization/msf/local_pyramid_map/base_map:base_map_matrix' failed; build aborted: Analysis failed
(10:53:17) INFO: Elapsed time: 20.380s
(10:53:17) INFO: 0 processes.
(10:53:17) FAILED: Build did NOT complete successfully (672 packages loaded, 1\
1323 targets configured)
```
  • Loading branch information
emankov committed Apr 6, 2022
1 parent dba192a commit c5c0b37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ http_archive(
"https://github.com/grpc/grpc/archive/v1.30.0.tar.gz",
],
)
http_archive(
name = "zlib",
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
strip_prefix = "zlib-1.2.11",
urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")

Expand Down

0 comments on commit c5c0b37

Please sign in to comment.