Git Product home page Git Product logo

Comments (6)

pcj avatar pcj commented on June 27, 2024

Looking into it. Have not tested 0.4.0 yet, looks like a sandboxing issue. Have you tried with --spawn_strategy=standalone?

from rules_protobuf.

kd8azz avatar kd8azz commented on June 27, 2024

Like this?

 $ bazel clean
......
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
 $ bazel build src/main/project/... src/test/project/... --spawn_strategy=standalone
WARNING: /home/user/.cache/bazel/_bazel_user/00bb1210de2173919b75bf7db0a13118/external/org_pubref_rules_protobuf/protobuf/internal/proto_compile.bzl:383:5: 
************************************************************
cd $(bazel info execution_root) && bazel-out/host/bin/external/com_github_google_protobuf/protoc \ 
--descriptor_set_out=bazel-out/local-fastbuild/genfiles/src/main/project/module/model/my_proto.pb.descriptor_set \ 
--java_out=bazel-out/local-fastbuild/genfiles/src/main/project/module/model/my_proto.pb_java.jar \ 
--plugin=protoc-gen-grpc-java=bazel-out/host/genfiles/external/org_pubref_rules_protobuf/java/protoc_gen_grpc_java \ 
--grpc-java_out=bazel-out/local-fastbuild/genfiles/src/main/project/module/model/my_proto.pb_java.jar \ 
--proto_path=. \ 
src/main/project/module/model/my_proto.proto
************************************************************
src/main/project/module/model/my_proto.pb_java.jar
src/main/project/module/model/my_proto.pb.descriptor_set
************************************************************
.
INFO: Found 19 targets...
ERROR: /home/user/Source/Project/src/main/project/module/model/BUILD:5:1: error executing shell command: 'bazel-out/host/bin/external/com_github_google_protobuf/protoc --descriptor_set_out=bazel-out/local-fastbuild/genfiles/src/main/project/module/model/my_proto.pb.descriptor_set --java_out=bazel-out/loc...' failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
/bin/bash: bazel-out/host/bin/external/com_github_google_protobuf/protoc: No such file or directory
INFO: Elapsed time: 2.282s, Critical Path: 0.51s

from rules_protobuf.

kd8azz avatar kd8azz commented on June 27, 2024

Also, I'm willing to try with another version of bazel. Just let me know which one. My goal here is to have a working compiler; I just upgrade it whenever it stops working.

from rules_protobuf.

pcj avatar pcj commented on June 27, 2024

Having trouble reproducing this. All tests are passing for me on both osx and linux with 0.3.1, 0.3.2, and 0.4.0. There have been some changes since 0.7.0 however, can you try the latest commit?

git_repository(
  name = "org_pubref_rules_protobuf",
  remote = "https://github.com/pubref/rules_protobuf",
  commit = "44c3928d2f165b8e62d1fd2192f5d14848ea66df",
)

from rules_protobuf.

kd8azz avatar kd8azz commented on June 27, 2024

Wonderful!

To recap--
My project builds with commit = "44c3928d2f165b8e62d1fd2192f5d14848ea66df",.
I also tried running your tests locally. master:HEAD passes, v0.7.0 does not.

Thank you for your help. I'm fine building against this commit hash, for a while, if you aren't ready to do another release. (There's nothing 'production' about my code, it's just a hobby)

from rules_protobuf.

pcj avatar pcj commented on June 27, 2024

I'm planning to update a few protobuf and grpc deps and cut a new release soon. Thanks for your testing and feedback.

from rules_protobuf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.