bitter-ability-32190
10/27/2022, 6:12 PM[docker].run_args
is args for run
, why isn't [docker].build_args
not args for build
š« curved-television-6568
10/27/2022, 6:18 PMbitter-ability-32190
10/27/2022, 6:20 PMflat-zoo-31952
10/27/2022, 6:23 PMbitter-ability-32190
10/27/2022, 6:23 PMbuild_args
were arg for build
, as thats whats intuitivebitter-ability-32190
10/27/2022, 6:24 PM--build-arg
arg, they could include it in build_args
(thanks docker for that naming)curved-television-6568
10/27/2022, 6:25 PMrun
goal⦠thatās most unfortunate.bitter-ability-32190
10/27/2022, 6:27 PMcurved-television-6568
10/27/2022, 6:27 PMrun_args
and how build_args
was something else⦠but couldnāt come up with a good way out of that holeā¦flat-zoo-31952
10/27/2022, 6:34 PMbuild
goal for a whole host of reasons, but mainly it's way too generic for a build system like pants to have such a goal.flat-zoo-31952
10/27/2022, 6:35 PMrun_args
around as a hidden alias for whatever we change it to)flat-zoo-31952
10/27/2022, 6:36 PMbitter-ability-32190
10/27/2022, 6:38 PMbuild_args
isn't for a build
goal and neither is run_args
for a run
goal.
run_args
is args for the run
subcommand of docker
build_args
are --build-arg
values for the build
subcommand for docker
there doesn't yet exist <thing>_args
for the build
subcommand of docker
. Intuition would say <thing>
is build
(which mirrors run_args
, and is a good name), but that's being squatted on šcurved-television-6568
10/27/2022, 6:39 PMintuition is a fickle, changing, context-dependent thingI like that. And I even think that these docker backend args make sense, viewed in isolation from each other, itās just together they donāt really sit well I think..
curved-television-6568
10/27/2022, 6:39 PMneither iswell, isnāt that splitting hairs, as you use thefor arun_args
goal.run
run
goal to get to the docker run
partā¦flat-zoo-31952
10/27/2022, 6:40 PM./pants run
maps to docker run
but ./pants package
maps to docker build
... sortaflat-zoo-31952
10/27/2022, 6:45 PMrun_extra_args
and build_extra_args
should be the options that are used for passing extra args to their respective subcommands. In this case, run_args
could be quietly aliased to run_extra_args
.
Although I'm not familiar enough with the use patterns to know if this makes sense exactly. Aren't some of these args injected by the rules around the goal?curved-television-6568
10/27/2022, 6:47 PMflat-zoo-31952
10/27/2022, 6:47 PMbitter-ability-32190
10/27/2022, 6:47 PMflat-zoo-31952
10/27/2022, 6:49 PMflat-zoo-31952
10/27/2022, 6:51 PMbitter-ability-32190
10/27/2022, 6:51 PM./pants fix
knew a default was going to change in a future version it could then set the value to the current-default with a comment.
Then the user can keep the old-default as hardcoded, or remove and use the new default when they upgrade.
šbitter-ability-32190
10/27/2022, 6:52 PMpants.toml
fixer and a shitton of plumbing)flat-zoo-31952
10/27/2022, 6:52 PMfix
for that because of the equivocation of "fix a problem" and "fix into place" like a "fixed location" šflat-zoo-31952
10/27/2022, 6:53 PMcurved-television-6568
10/27/2022, 6:53 PMfix all my future problems now
bitter-ability-32190
10/27/2022, 6:54 PMfix
. Fixing problemsbitter-ability-32190
10/27/2022, 6:54 PMcurved-television-6568
10/27/2022, 6:54 PMflat-zoo-31952
10/27/2022, 6:55 PMflat-zoo-31952
10/27/2022, 6:56 PMbut yeah, addressing the unfortunate option naming in the docker backend is a welcome exercise we can apply to the new deprecation policy to help shape it, if that was the idea?Yes, sounds like a good case study. And maybe we can find a way to arrive at something more intuitive and sensible while perhaps not requiring a break. Or at least allowing a fixer to bridge the gap across the breaking change.
flat-zoo-31952
10/27/2022, 6:57 PMcurved-television-6568
10/27/2022, 6:58 PMbitter-ability-32190
10/27/2022, 6:58 PMcurved-television-6568
10/27/2022, 6:59 PMflat-zoo-31952
10/27/2022, 7:03 PMflat-zoo-31952
10/27/2022, 7:03 PMbitter-ability-32190
10/27/2022, 7:03 PMflat-zoo-31952
10/27/2022, 7:04 PMbitter-ability-32190
10/27/2022, 7:05 PMflat-zoo-31952
10/27/2022, 7:06 PM