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

high-yak-85899

01/19/2022, 9:49 PM
Hi Pants team and users. Been working with Pants for a week or so now to bring a decently sized monorepo into a more scalable place. We started with Bazel and found it far too prohibitive to work at this time. Pants has been much better and the docs are much easier to follow! I did have one small question about
export-codegen
(I'm working with protobufs). I can happily generate code for cases where I point to a specific target (e.g.
./pants export-codegen some/path
) but I was wondering how I can generate everything under a certain subdirectory. I've seen
./pants export-codegen ::
for everything in the workspace, but I was hoping to go more incrementally as I update paths and such to get things working.
👋 1
h

hundreds-father-404

01/19/2022, 9:51 PM
Hey Nathanael, welcome! Glad to have you here. Also https://www.astranis.com looks so cool 🌌 You should be able to do
./pants export-codegen some/path::
. That works in general, like
./pants test some/path::
h

high-yak-85899

01/19/2022, 10:00 PM
Ugh, I thought I tried that 🤦 . Thanks, that's working great.
🙌 1
b

busy-vase-39202

01/19/2022, 10:50 PM
Welcome to Pants community @high-yak-85899! Glad your first question was so easy for us to solve. 🙂 Would it be okay to tweet "We started with Bazel and found it far too prohibitive to work at this time. Pants has been much better and the docs are much easier to follow!", with or without attribution (whichever you prefer), from the Pants account? Your experience is such a common one.
h

high-yak-85899

01/19/2022, 11:42 PM
Sure, I'll DM you
🎉 1
3 Views