google / trillian

A transparent, highly scalable and cryptographically verifiable data store.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bazel not building

mhutchinson opened this issue · comments

DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "91220997bb6bce38c979f4980da1103e9bc23abc81a09c3045459fbc89c4d1eb"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /workspace/WORKSPACE:26:1
Analyzing: 8 targets (1 packages loaded, 0 targets configured)
INFO: SHA256 (https://github.com/bazelbuild/rules_go/archive/7d17d496a6b32f6a573c6c22e29c58204eddf3d4.zip) = bf483b3be44fbe1dc798f18470cadf67541f5d890cad691ef335546a88f5ba0f
DEBUG: Rule 'io_bazel_rules_go' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "bf483b3be44fbe1dc798f18470cadf67541f5d890cad691ef335546a88f5ba0f"
DEBUG: Call stack for the definition of repository 'io_bazel_rules_go' which is a http_archive (rule definition at /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /workspace/WORKSPACE:41:1
Analyzing: 8 targets (14 packages loaded, 56 targets configured)
INFO: Call stack for the definition of repository 'zlib' which is a http_archive (rule definition at /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/com_google_protobuf/protobuf_deps.bzl:9:9
 - /workspace/WORKSPACE:24:1
WARNING: Download from https://zlib.net/zlib-1.2.11.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
ERROR: An error occurred during the fetch of repository 'zlib':
   java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/com_google_protobuf/BUILD:150:1: @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 /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: Analysis of target '//:trillian_proto' failed; build aborted: no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
INFO: Elapsed time: 10.651s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (17 packages loaded, 161 targets configured)

zlib 1.2.12 was released on March 27 2022, and it looks like they've immediately taken down the 1.2.11 release for download. The HEAD version of protobuf is still pinned against the old version: https://github.com/protocolbuffers/protobuf/blob/main/protobuf_deps.bzl#L35

For now, recommend removing bazel from cloudbuild integration. Leave this open to determine if we go all the way and remove it, or try to repair (or at least, await upstream repair).