hundreds-father-404
05/05/2021, 2:58 PM./pants pin
However, we want to eagerly warn if we detect the input requirements have changed and the lockfile has not been changed, to suggest running again. How could we know when this is the case? Especially in a way that works without pantsd? And even immune to wiping lmdb store?
My thinking is to hash all the input requirements and write the hash to the lockfile. Every run, we can compare the calculated hash with the hash saved in the lockfilewitty-crayon-22786
05/05/2021, 10:09 PMwitty-crayon-22786
05/05/2021, 10:11 PMhundreds-father-404
05/05/2021, 10:11 PMwitty-crayon-22786
05/05/2021, 10:13 PMrequests>=0.0.7
match requests==0.0.8
?"witty-crayon-22786
05/05/2021, 10:14 PMhundreds-father-404
05/05/2021, 10:16 PMhundreds-father-404
05/05/2021, 10:16 PMhash
proposal is roughly what Poetry, Cargo, and friends are doing when they put a hash at the top of their lockfileswitty-crayon-22786
05/05/2021, 10:16 PMwitty-crayon-22786
05/05/2021, 10:17 PMhundreds-father-404
05/05/2021, 10:18 PM"does requests>=0.0.7 match requests==0.0.8?"
has the same problem, right? You still either way need the original inputswitty-crayon-22786
05/05/2021, 10:19 PMwitty-crayon-22786
05/05/2021, 10:20 PMhundreds-father-404
05/05/2021, 10:49 PM[python-setup].lockfile_regeneration = {"generate", "error"}
. We could add an ignore
? Purely intended for desktop builds for better performance, then use "error" for CI
Also, pantsd would reduce the perf hit for this check