https://pantsbuild.org/ logo
#general
Title
# general
b

bored-glass-58755

08/18/2022, 1:27 PM
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

enough-analyst-54434

08/18/2022, 1:41 PM
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

bored-glass-58755

08/18/2022, 1:43 PM
Thanks John, I realized I was looking at old docs.
👍 1
b

busy-vase-39202

08/18/2022, 5:39 PM
Did you land on old docs by accident? Maybe we need to fix a link or something.
b

bored-glass-58755

08/18/2022, 6:06 PM
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

busy-vase-39202

08/18/2022, 6:09 PM
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

bored-glass-58755

08/18/2022, 6:13 PM
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

busy-vase-39202

08/18/2022, 6:46 PM
Best to open a new thread with that question. @hundreds-father-404 may be a good person to give you advice on that.
b

bored-glass-58755

08/18/2022, 6:49 PM
Cool, ok! Thanks. I am already in conversation with them in a separate thread.
🔥 1
3 Views