fresh-cat-90827
03/11/2022, 11:46 AMpants that lives in the repo root is updated, how would one force Pants to re-bootstrap itself using the latest file? (see https://www.pantsbuild.org/docs/upgrade-tips#check-for-updates-to-the-pants-script). Blowing the ~/.cache/pants doesn’t feel very friendly 😕 I’m on 2.9.0 and after making changes to the pants file that would cause Pants to fail bootstrapping, Pants still runs, ignoring the changes in the pants file.hundreds-father-404
03/11/2022, 4:25 PM~/.cache/pants/setup, but I don't see why that would be necessary. What are the changes that Pants is not doing and that you expect it to?fresh-cat-90827
03/11/2022, 4:36 PMpants script from a few months ago (pants file is part of the repo)
• run ./pants version ; it bootstraps itself and working
• download the latest https://github.com/pantsbuild/setup/blob/gh-pages/pants and re-run ./pants. It doesn’t use the newly downloaded pants file. This can be reproduced by simply making some bogus changes to the script that would cause it to fail, e.g. https://github.com/pantsbuild/setup/blob/gh-pages/pants#L37 set a non-existing version herehundreds-father-404
03/11/2022, 4:37 PMset -x to the top will show you specifically which lines of bash are being executedfresh-cat-90827
03/11/2022, 4:39 PMhundreds-father-404
03/11/2022, 4:40 PM~/.cache/pants/setupfresh-cat-90827
03/11/2022, 5:38 PM~/.cache/pants/setup after they pull and get a new version of the pants file — it will run and use the latest file, no matter what?hundreds-father-404
03/11/2022, 5:44 PM./pants script to no longer install in the same place, we would probably add code to handle thathundreds-father-404
03/11/2022, 5:44 PMexit 1 to the top of the script and run ./pantsfresh-cat-90827
03/11/2022, 6:46 PMls foo 😄 I can see that it runs, which is great. If there is anything dodgy, I’ll report. And I know what directory to nuke as well. Thanks, Eric, so helpful, as always!