rhythmic-butcher-20315
09/18/2023, 8:53 PMpants
command in a machine that doesn't contain any pants repo. What happens is that pants bootstraps itself by downloading python3.9 and everything else that it needs, which is nice. My issue is that pants than asks if I want to create a new pants repo in the directory that I am running the pants
command, and I don't want it to happen.
Is there any pants
subcommand that make it bootstraps itself but makes pants not ask to create a new pants project?
Just to give more context, I want to build a docker image containing all necessary pants dependencies to run some CI/CD steps, but I am struggling when pants asks to create a new pants repo.enough-analyst-54434
09/18/2023, 8:57 PMpants
at all in this context then?enough-analyst-54434
09/18/2023, 9:00 PMenough-analyst-54434
09/18/2023, 9:00 PMpants
is not pants. It's a shim binary and it's already bootstrapped.enough-analyst-54434
09/18/2023, 9:01 PMenough-analyst-54434
09/18/2023, 9:01 PMpants.toml
rhythmic-butcher-20315
09/18/2023, 9:03 PMenough-analyst-54434
09/18/2023, 9:03 PMenough-analyst-54434
09/18/2023, 9:06 PM$ touch pants.toml && PANTS_VERSION=2.16.0 pants -V && rm pants.toml
Bootstrapping Pants 2.16.0 using cpython 3.9.16
Installing pantsbuild.pants==2.16.0 into a virtual environment at /home/jsirois/.cache/nce/260e9f180e257368873660af8dd93ef1ae670cb61bde99eea1fd914ad6e534bb/bindings/venvs/2.16.0
New virtual environment successfully created at /home/jsirois/.cache/nce/260e9f180e257368873660af8dd93ef1ae670cb61bde99eea1fd914ad6e534bb/bindings/venvs/2.16.0.
2.16.0
enough-analyst-54434
09/18/2023, 9:07 PMpants.toml
, Pants assumes the latest stable version (currently 2.17.0), bootstraps that, and then offers to record that in pants.toml
in CWD.rhythmic-butcher-20315
09/18/2023, 9:07 PMrhythmic-butcher-20315
09/18/2023, 9:08 PMenough-analyst-54434
09/18/2023, 9:08 PMrhythmic-butcher-20315
09/18/2023, 9:08 PMenough-analyst-54434
09/18/2023, 9:09 PMCOPY pants.toml ..
then bootstrap pants then remove it?enough-analyst-54434
09/18/2023, 9:09 PMpants_version
in it.rhythmic-butcher-20315
09/18/2023, 9:10 PMenough-analyst-54434
09/18/2023, 9:10 PMrhythmic-butcher-20315
09/18/2023, 9:12 PM