pants generate-lockfiles [args]
Generate lockfiles for third-party dependencies.
Only generate lockfiles for the specified resolve(s).
Resolves are the logical names for the different lockfiles used in your project. For your own code's dependencies, these come from backend-specific configuration such as
[python].resolves. For tool lockfiles, resolve names are the options scope for that tool such as
For example, you can run
pants generate-lockfiles --resolve=black --resolve=pytest --resolve=data-science to only generate lockfiles for those two tools and your resolve named
If you specify an invalid resolve name, like 'fake', Pants will output all possible values.
If not specified, Pants will generate lockfiles for all resolves.
Print a summary of changed distributions after generating the lockfile.
Include unchanged distributions in the diff summary output. Implies
If set, lockfile headers will say to run this command to regenerate the lockfile, rather than running
pants generate-lockfiles --resolve=<name> like normal.
Updated about 2 months ago