ripe-gigabyte-88964
03/17/2023, 2:37 PMnice-park-16693
03/17/2023, 2:44 PMpants generate-lockfiles --generate-lockfiles-resolve="['resolve_1', 'resolve_2']"
I haven't yet found a more automated way -- for example, something that could look at unstaged changes or changes between two revisions and regenerate only lockfiles for affected resolves.curved-television-6568
03/17/2023, 2:58 PM$ pants peek --filter-target-type=python_requirement --changed-dependents=transitive --changed-since=main | jq -r '.[] | .resolve // "python-default"' | sort | uniq
python-default
then use that as input for the next step
$ pants generate-lockfiles --resolve=...
(note: you can omit the goal name from the option when used after the goal on the command line as the scope will be inferred..)