enough-analyst-54434
03/21/2020, 3:38 PMwitty-crayon-22786
03/21/2020, 11:45 PMhundreds-breakfast-49010
03/22/2020, 12:03 AMwitty-crayon-22786
03/22/2020, 12:06 AMhundreds-breakfast-49010
03/22/2020, 12:07 AMwitty-crayon-22786
03/22/2020, 12:08 AMhundreds-breakfast-49010
03/22/2020, 12:08 AM./pants
on the command linewitty-crayon-22786
03/22/2020, 12:08 AMhundreds-breakfast-49010
03/22/2020, 12:08 AMwitty-crayon-22786
03/22/2020, 12:09 AM--enable-pantsd
itself, the hack would be small.hundreds-breakfast-49010
03/22/2020, 12:09 AMBootstrapOptions
, which would reduce code duplication)enough-analyst-54434
03/22/2020, 12:10 AMwitty-crayon-22786
03/22/2020, 12:10 AMhundreds-breakfast-49010
03/22/2020, 12:10 AMwitty-crayon-22786
03/22/2020, 12:11 AMenable_pantsd
flag and nothing else could be achieved much more quickly.hundreds-breakfast-49010
03/22/2020, 12:12 AMwitty-crayon-22786
03/22/2020, 12:12 AMhundreds-breakfast-49010
03/22/2020, 12:12 AMpants
and that shell script does a bunch of bootstrapping stuff with python, and I don't understand all the dteails of how that workswitty-crayon-22786
03/22/2020, 12:13 AMenough-analyst-54434
03/22/2020, 12:13 AMwitty-crayon-22786
03/22/2020, 12:14 AMhundreds-breakfast-49010
03/22/2020, 12:14 AMpants
binary should be a compiled rust binary?enough-analyst-54434
03/22/2020, 12:14 AMwitty-crayon-22786
03/22/2020, 12:15 AMhundreds-breakfast-49010
03/22/2020, 12:15 AMwitty-crayon-22786
03/22/2020, 12:16 AMenough-analyst-54434
03/22/2020, 12:16 AMhundreds-breakfast-49010
03/22/2020, 12:16 AMwitty-crayon-22786
03/22/2020, 12:16 AMhundreds-breakfast-49010
03/22/2020, 12:17 AMwitty-crayon-22786
03/22/2020, 12:18 AMhundreds-breakfast-49010
03/22/2020, 12:19 AMwitty-crayon-22786
03/22/2020, 12:20 AMenough-analyst-54434
03/22/2020, 12:20 AMwitty-crayon-22786
03/22/2020, 12:21 AMenough-analyst-54434
03/22/2020, 12:21 AMhundreds-breakfast-49010
03/22/2020, 12:21 AMpants_cli
, and in the pants
shell script we'd swap out the line exec "${pants_dir}/bin/python" "${pants_dir}/bin/pants" "$@"
for just ./pants_cli
pants_cli
would have to figure out how to do the same stuff that that shell script does, in the case where we're not using pantsdenough-analyst-54434
03/22/2020, 12:22 AMwitty-crayon-22786
03/22/2020, 12:22 AMhundreds-breakfast-49010
03/22/2020, 12:24 AMbootstrap_pants
function?witty-crayon-22786
03/22/2020, 12:25 AMcargo run $mybinary
from the pants script.hundreds-breakfast-49010
03/22/2020, 12:25 AMpants
as installed in a random test repopants
in the pants repo is differentwitty-crayon-22786
03/22/2020, 12:26 AMhundreds-breakfast-49010
03/22/2020, 12:26 AM<https://pantsbuild.github.io/setup/pants>
witty-crayon-22786
03/22/2020, 12:45 AMhundreds-breakfast-49010
03/22/2020, 12:47 AMwitty-crayon-22786
03/22/2020, 12:48 AMhundreds-breakfast-49010
03/22/2020, 12:50 AM./pants <whatever>
at the command line start up a rust program that does the initialization work we currently do in python, with the expectation that I might write this and submit a PR next week. it's very possible that I'm missing something important that would make this easier to do or harder to do than I think it would, because I personally lack familiarity with something other people already know aboutwitty-crayon-22786
03/22/2020, 12:53 AMhundreds-breakfast-49010
03/22/2020, 12:54 AMwitty-crayon-22786
03/22/2020, 12:55 AMhundreds-breakfast-49010
03/22/2020, 12:55 AMnative_engine.so
lib we already build?witty-crayon-22786
03/22/2020, 12:56 AMengine
crate.hundreds-breakfast-49010
03/22/2020, 12:57 AMwitty-crayon-22786
03/22/2020, 1:00 AMcargo run $binary
in the pantsbuild/pants repo because it would allow you to completely ignore packaging until the whole thing is working end to endbuild-support/bin/native/cargo run $binary
, in order to use our bootstrapped cargo and rust)