https://pantsbuild.org/ logo
h

hundreds-father-404

11/13/2019, 9:54 PM
Is there any way to define passthru args in
pants.ini
so that they’re always used with that goal? For example, set
--test-pytest
to always use
-- -s
?
a

aloof-angle-91616

11/13/2019, 9:59 PM
each task usually has a separate option for args
i think it’s called
--args
for pytest
h

hundreds-father-404

11/13/2019, 10:01 PM
a

aloof-angle-91616

11/13/2019, 10:06 PM
sounds like it’s time to add it back? although i would love an excuse to expand the compiler_option_sets paradigm (or something) to have a consistent interface for passing args to tasks
h

hundreds-breakfast-49010

11/13/2019, 10:07 PM
I was suggesting to @hundreds-father-404 that we might want a common --passthrough mechanism that we can use with multiple goals
since
run
also needs this
something like what you did with --transitive for v1 consolet asks
h

hundreds-father-404

11/13/2019, 10:08 PM
@hundreds-breakfast-49010 we have a common mechanism in a V1 goal to say that it supports passthru, meaning for that goal it is meaningful to add command line args after
--
This feature I’d like is to then have a generic way to specify those passthru args via env vars or
pants.ini
w

witty-crayon-22786

11/13/2019, 10:56 PM
i believe that @enough-analyst-54434 did something to unify passthrough and everything else... but i forgot what it was.
h

hundreds-father-404

11/13/2019, 10:57 PM
3 Views