i would like to be able to tell pants to produce a...
# general
a
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
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
the v1 behavior seems like it's from ConsoleTask but i'm not sure how that propagates here
👍 1
h
yeah, me neither
a
you're definitely correct that outputting the binary is not what that option does
h
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
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
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
we want to supress v1-only goals
h
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
`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
is there an open issue for this already?
if not I can make one
a
i'm not sure!
i would make one and see if github gives you any suggested issues
w
would be great to look at this holistically via https://github.com/pantsbuild/pants/issues/8550
☝️ 1
👖 1
a
thanks!!!
h