Giter Site home page Giter Site logo

Proto resolution mess up about pants HOT 4 OPEN

leozc avatar leozc commented on August 22, 2024
Proto resolution mess up

from pants.

Comments (4)

benjyw avatar benjyw commented on August 22, 2024

This is because the Python protobuf plugin is inferring a dependency from the protobuf_sources target to the protobuf distribution, and then the Java backend is trying to build a classpath entry out of this, and obviously cannot.

As a workaround you can turn the dep inference off with

[python-protobuf]
infer_runtime_dependency = false

in pants.toml. But then your Python side may not work, and you'll have to manually add back that dep from the relevant python_sources so it gets pulled in. Again, this is just a workaround until I figure out something more robust.

from pants.

benjyw avatar benjyw commented on August 22, 2024

@leozc can you add some python code that uses the python-generated protobuf code (generated from the same Event.proto) to the example repo? I'd like to see more closely how those interact.

from pants.

leozc avatar leozc commented on August 22, 2024

will do

from pants.

benjyw avatar benjyw commented on August 22, 2024

@leozc best to @ me here and/or on Slack when this is ready, thanks!

from pants.

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.