Closed ryanking closed 2 years ago
What were you trying to generate lockfiles for? Pants does not generate lockfiles for Go or Terraform yet. When you don't have pants.backend.{python,java,scala}
activated, then Pants should not be showing the generate-lockfiles
goal with ./pants help goals
.
I was trying to generate a lockfile for the terraform hcl2 parser (so that I could upgrade the library version).
@tdyas suggested ./pants generate-lockfiles --resolve=terraform-hcl2-parser
to do that, which fails. I don't know if help
was listing it or not.
Ahhh that makes sense. Thanks for filing this! So we need to register the Python generate-lockfiles rules for Terraform & I think Docker because they use PythonTool
. Go does not need it.
See https://github.com/pantsbuild/pants/pull/15453. Thanks for the report!!
Describe the bug
In a repo which does not use python (terraform & go) I had troubled getting lockfiles generated.
Once i added
pants.backend.python
tobackend_packages
the command worked.Pants version 2.9.0
OS Mac