grahamjenson / bazel-golang-wasm-proto

Simple site using Bazel Golang WASM and Proto
10 stars 5 forks source link

Does not compile out of the box #2

Open filmil opened 1 year ago

filmil commented 1 year ago

I think bitrot might have affected the build. See below. I spent some time trying to spruce it up, but didn't get anywhere useful yet. See https://github.com/filmil/bazel-golang-wasm-proto/tree/modernize

╰─>$ bazel run :server
INFO: Build options --cxxopt and --host_cxxopt have changed, discarding analysis cache.
INFO: Repository zlib instantiated at:
  /home/fmil/tmp/bazel-golang-wasm-proto/WORKSPACE:104:14: in <toplevel>
  /home/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/com_google_protobuf/protobuf_deps.bzl:9:21: in protobuf_deps
Repository rule http_archive defined at:
  /home/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
WARNING: Download from https://zlib.net/zlib-1.2.11.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
ERROR: An error occurred during the fetch of repository 'zlib':
   Traceback (most recent call last):
        File "/home/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/bazel_tools/tools/build_defs/repo/http.bzl", line 132, 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/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/zlib/temp6471108196982621039/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: /home/fmil/tmp/bazel-golang-wasm-proto/WORKSPACE:104:14: fetching http_archive rule //external:zlib: Traceback (most recent call last):
        File "/home/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/bazel_tools/tools/build_defs/repo/http.bzl", line 132, 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/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/zlib/temp6471108196982621039/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: /home/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/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/fmil/.cache/bazel/_bazel_fmil/7892fb7c908218c973d6d9af1630d266/external/zlib/temp6471108196982621039/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: Analysis of target '//:server' failed; build aborted: 
INFO: Elapsed time: 17.554s
INFO: 0 processes.
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (69 packages loaded, 6960 targets configured)
    Fetching repository @org_golang_x_net; starting
    Fetching repository @org_golang_google_grpc; starting
    Fetching repository @com_github_lyft_protoc_gen_star; starting
┬─[fmil@fmil9:~/tmp/bazel-golang-wasm-proto]─[11:27:41 PM]
│ (g/b:master)
╰─>$ 
grahamjenson commented 1 year ago

Yeah, the speed at which this stuff was developing probably made this obsolete within a few months.

filmil commented 1 year ago

In the above case, however, zlib-1.2.11 was retracted due to a CVE