grahamjenson / bazel-golang-wasm-proto

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

bazel build failing #1

Closed joe-getcouragenow closed 4 years ago

joe-getcouragenow commented 4 years ago

This is a great example of bazel and custom protobufs, but i cant get it to run.

Is it because some of the dependencies have changed ?

Log:

➜  grahamjenson_bazel-golang-wasm-proto git:(master) ✗ 
bazel run :server
INFO: Repository com_github_grpc_grpc instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule go_repository defined at:
  /private/var/tmp/_bazel_apple/27fffacbb2c96a055d43accc63af943b/external/bazel_gazelle/internal/go_repository.bzl:189:32: in <toplevel>
ERROR: An error occurred during the fetch of repository 'com_github_grpc_grpc':
   failed to fetch com_github_grpc_grpc: fetch_repo: unexpected end of JSON input
ERROR: no such package '@com_github_grpc_grpc//bazel': failed to fetch com_github_grpc_grpc: fetch_repo: unexpected end of JSON input
INFO: Elapsed time: 0,371s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
make: *** [build] Error 1
➜  grahamjenson_bazel-golang-wasm-proto git:(master) ✗ 
joe-getcouragenow commented 4 years ago

According to this https://github.com/bazelbuild/rules_go#protobuf-and-grpc, com_google_protobuf is now the name for GRPC dependency.

grahamjenson commented 4 years ago

Hey, I don't really intend to maintain this example, there are too many workarounds that will break with compatibility quickly so this is more a starting point or demo of how others could. That being said, if you want to submit a PR with any fixes I will merge. Cheers.

joe-getcouragenow commented 4 years ago

ok then. me neither. will clsoe.