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

aloof-angle-91616

12/06/2019, 7:38 PM
i would like to be able to tell pants to produce a binary at a specific path instead of knowing the target name and globbing
dist/
h

hundreds-breakfast-49010

12/06/2019, 7:40 PM
yeah we might want the same thing, to be able to configure
binary
to write to somewhere other than
dist
(@hundreds-father-404 @polite-garden-50641)
I'm just trying to figure out what the v1 behavior is. this is a confusingly-worded help item though
it's not the case that we output a "binary" to stdout if this option isn't set
a

aloof-angle-91616

12/06/2019, 7:41 PM
the v1 behavior seems like it's from ConsoleTask but i'm not sure how that propagates here
👍 1
h

hundreds-breakfast-49010

12/06/2019, 7:41 PM
yeah, me neither
a

aloof-angle-91616

12/06/2019, 7:41 PM
you're definitely correct that outputting the binary is not what that option does
h

hundreds-breakfast-49010

12/06/2019, 7:41 PM
I guess I was assuming that whatever in v1 implemented binary was a subclass of
ConsoleTask
but upon further thought I'm not sure if that's how v1 rules work
anyway I don't want to spend a whole lot of time on v1 stuff, but rather figure out what the right behavior is for v2
a

aloof-angle-91616

12/06/2019, 7:42 PM
it actually looks like it's registered on the goal
forget about it imo
and in general i want to avoid the propagation of
--output-file
options on individual tasks anyway
h

hundreds-breakfast-49010

12/06/2019, 7:43 PM
another thing - if I do
./pants --v2 --no-v1 binary --help
, I get exactly the same help output as without the v2/v1 flags
but it seems to me that with those flags we want to suppress everything that's v1-only
a

aloof-angle-91616

12/06/2019, 7:43 PM
we want to supress v1-only goals
h

hundreds-breakfast-49010

12/06/2019, 7:44 PM
so is this just a chunk of work involving the help-printing system that needs to be done that no one's gotten to yet?
🔥 1
a

aloof-angle-91616

12/06/2019, 7:44 PM
`Task`s are
Optionable
, as are `Subsystem`s, so all of that will still show up in
--help
yes
@fancy-motherboard-24956 was very interested in doing this
i am as well, many engineers at twitter have complained about this
h

hundreds-breakfast-49010

12/06/2019, 7:44 PM
is there an open issue for this already?
if not I can make one
a

aloof-angle-91616

12/06/2019, 7:45 PM
i'm not sure!
i would make one and see if github gives you any suggested issues
w

witty-crayon-22786

12/06/2019, 7:55 PM
would be great to look at this holistically via https://github.com/pantsbuild/pants/issues/8550
☝️ 1
👖 1
a

aloof-angle-91616

12/06/2019, 7:55 PM
thanks!!!
h

hundreds-breakfast-49010

12/06/2019, 7:57 PM
4 Views