Git Product home page Git Product logo

Comments (3)

pcj avatar pcj commented on August 18, 2024

You're right,

I waffle about this a bit. When I first designed it, I though having a different name for proto inputs would be better, because that allows the srcs attribute to be reserved for native source files.

Compare the following:

java_proto_library(
    name = "myapp",
    protos = ["foo.proto"],
    srcs = ["App.java"],
)

vs

java_proto_library(
    name = "myapp",
    srcs = ["foo.proto"],
    java_srcs = ["App.java"],
)

In practice though, I think most people just reserve the proto_library rule for proto files only, and don't mix it with native sources.

I get the sense this is particularly irksome for googlers or ex-googlers that like it the way it is internally, and used to seeing it that way.

So, I'm OK with doing this.

from rules_protobuf.

perezd avatar perezd commented on August 18, 2024

yeah, I think its best to keep them separated. In practice, I don't want to combine my protos and java sources into a single build rule, that doesn't feel good.

from rules_protobuf.

pcj avatar pcj commented on August 18, 2024

Note: these rules have been re-written and migrated to https://github.com/stackb/rules_proto. Please re-open there if issue persists, thanks.

Cleaning up all issues on this repo, apologies in advance for closing without proper response.

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.