fierce-truck-19259
03/26/2025, 11:58 AMdownload-terraform ? If it affects terraform generally, shouldn't it just be terraform ? https://github.com/pantsbuild/pants/blob/f2246fdfa8089a819ba1764d52e96d063de7111e/src/python/pants/backend/terraform/tool.py#L47wide-midnight-78598
03/26/2025, 12:38 PMfierce-truck-19259
03/26/2025, 12:54 PMAdditional environment variables that would be made available to all Terraform processes.So the name is slightly confusing today I think
fierce-truck-19259
03/26/2025, 12:54 PMterraform scope currentlywide-midnight-78598
03/26/2025, 12:55 PMfierce-truck-19259
03/26/2025, 12:58 PMfast-nail-55400
03/26/2025, 3:55 PMfast-nail-55400
03/26/2025, 3:56 PMdownload-terraform and the general options for the backend is terraformwide-midnight-78598
03/26/2025, 4:26 PMfierce-truck-19259
03/26/2025, 5:18 PM⢠change options scopeAh! đ it is already noted then->download-terraformterraform
fierce-truck-19259
03/26/2025, 5:36 PMwide-midnight-78598
03/26/2025, 5:50 PMwide-midnight-78598
03/26/2025, 5:51 PMhappy-kitchen-89482
03/26/2025, 6:21 PMfierce-truck-19259
03/26/2025, 6:24 PMfierce-truck-19259
03/26/2025, 6:29 PMhappy-kitchen-89482
03/26/2025, 6:50 PMwide-midnight-78598
03/26/2025, 7:00 PMpants.backend.python in pants.toml, and I can configure it as:
[python]
⌠whatever
And then, the subsystem representing that is in a file named setup.py with the class PythonSetup, that has an options_scope=âpythonâ with the help description of âOptions for Pantsâ Python backendâwide-midnight-78598
03/26/2025, 7:01 PMfierce-truck-19259
03/30/2025, 2:12 AMfierce-truck-19259
03/30/2025, 3:41 AMhappy-kitchen-89482
03/30/2025, 6:04 PMterraform or mypy or whatever). So we end up with two subsystems, one for configuring downloading the tool, and the other for configuring how the tool is used.happy-kitchen-89482
03/30/2025, 6:06 PMTemplatedExternalTool (in this case TerraformTool) or of PythonToolBase (e.g., MyPy).happy-kitchen-89482
03/30/2025, 6:07 PMfierce-truck-19259
04/07/2025, 6:02 PMYou would effectively be saying âthis backend is so closely tied to a single tool that the two subsystems can be oneâ but I think that is very true in most casesYeah maybe that is quite fair. Should there be a way to model that case more explicitly, more than just naming convention? If it would simplify the "common case" somehow?
fierce-truck-19259
04/07/2025, 6:04 PMcareful-address-89803
04/10/2025, 3:22 AMcareful-address-89803
04/10/2025, 3:22 AMdownload-terraform was because it started out as just the info to download terraform (version number and urls and stuff) and then I pushed more things onto it and didn't realise I was bloating it until it was too latecareful-address-89803
04/10/2025, 3:24 AMterraform and download-terraform (or terraform-download) for adding OpenTofu, as I think there would be some logic that we could contain there.fierce-truck-19259
04/11/2025, 10:18 PMthere's probably a rationale for keeping both aYeah maybe it's more moving options to aandterraform(ordownload-terraform) for adding OpenTofu, as I think there would be some logic that we could contain there.terraform-download
terraform scope rather than renaming it then? I think it's the only scope that has a download-classifier, confusion comes from options like platforms that affect the actual terraform operations for example