Could anyone please help me understand the differe...
# general
b
Could anyone please help me understand the difference between backend_packages.add and backend_packages2.add? Is the latter to be used for pants v2? Are those interchangeable? I am using pants 2.12
1
😮 1
e
Where do you find a reference to
backend_packages2
? I'm pretty sure that has never existed for Pants v2. Perhaps it existed for a while in late v1 (1.30.x) as we prepared for v2.0.0? At any rate, using that should definitely cause an error about an unrecognized option now and you'll want to use
backend_packages
.
b
Thanks John, I realized I was looking at old docs.
👍 1
b
Did you land on old docs by accident? Maybe we need to fix a link or something.
b
I googled and clicked on the first official link I found. I believe I should have been more careful and that there’s no fixing required here.
Thanks for checking though.
b
Ah gotcha. Well it would be nice if Google would prioritize more recent versions, but unfortunately it sounds like a problem out of our control.
👍 1
b
Could you please help me with another issue I am having or point me towards right direction: I am referring this link and I am kind of lost between Step 3 and Step 4. Step 3 says to use ./pants tailor goal to generate BUILD files and then Step 4 starts talking about importing the generated stubs in the code. How do I generate the stubs in the first place? I added grpc=True in my protobuf_sources target.
b
Best to open a new thread with that question. @hundreds-father-404 may be a good person to give you advice on that.
b
Cool, ok! Thanks. I am already in conversation with them in a separate thread.
🔥 1