Git Product home page Git Product logo

Comments (4)

erickj avatar erickj commented on August 9, 2024

I'll happily send a pull request to update the documentation if you can point me in the right direction

from rules_protobuf.

erickj avatar erickj commented on August 9, 2024

Sorry one more update.

I also tried adding @com_google_protobuf//:well_known_protos and the direct proto_library dependency on :any_proto

$ bzqb //proto:ruby_protos
# /home/erick/workspace/src/io.vos/proto/BUILD:42:1
proto_compile(
  name = "ruby_protos",
  generator_name = "ruby_protos",
  generator_function = "ruby_proto_compile",
  generator_location = "proto/BUILD:42",
  langs = ["@org_pubref_rules_protobuf//ruby:ruby"],
  protos = ["//proto:all_proto_files"],
  deps = ["@com_google_protobuf//:well_known_protos"],
)

00:53:54 [erick@lenobot:~/workspace/src/io.vos] (git:master *$)
$ bzqb //proto:ruby_protos
# /home/erick/workspace/src/io.vos/proto/BUILD:42:1
proto_compile(
  name = "ruby_protos",
  generator_name = "ruby_protos",
  generator_function = "ruby_proto_compile",
  generator_location = "proto/BUILD:42",
  langs = ["@org_pubref_rules_protobuf//ruby:ruby"],
  protos = ["//proto:all_proto_files"],
  deps = ["@com_google_protobuf//:any_proto"],
)

but only received this error:

ERROR: /home/erick/workspace/src/io.vos/proto/BUILD:42:1: in deps attribute of proto_compile rule //proto:ruby_protos: '@com_google_protobuf//:any_proto' does not have mandatory providers: 'proto_compile_result'. Since this rule was created by the macro 'ruby_proto_compile', the error might have been caused by the macro implementation in /home/erick/workspace/src/io.vos/proto/BUILD:42:1

Intuitively... to how the bazel provide proto rules work... I would have expected either the deps attribute with the proto_library rule to be accepted or specifying the :well_known_protos file group in the protos attr to have worked.

from rules_protobuf.

pcj avatar pcj commented on August 9, 2024

Hello @erickj I'm migrating the rules over to a new organization and a full rewrite using native proto_library. There's an example there of using wkt with ruby (see the person/place/thing.proto where thing imports any.proto):

https://github.com/stackb/rules_proto/tree/master/ruby

from rules_protobuf.

erickj avatar erickj commented on August 9, 2024

worked great first try. thanks!

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.