ripe-gigabyte-88964
03/10/2023, 8:53 PMpants fmt? I'm trying to figure out why the terraform formatter does not seem to be running.happy-kitchen-89482
03/10/2023, 8:57 PMpants.backend.experimental.terraform backend in pants.toml?happy-kitchen-89482
03/10/2023, 9:06 PMtailor to generate appropriate BUILD file targets?ripe-gigabyte-88964
03/13/2023, 1:44 PMpants.toml
[GLOBAL]
pants_version = "2.15.0"
backend_packages = [
"pants.backend.python",
"pants.backend.experimental.java",
"pants.backend.experimental.scala",
"pants.backend.experimental.terraform"
]
[source]
marker_filenames = [ "setup.py" ]
root_patterns = [ "src", "terraform" ]
[jvm]
jdk = "termurin:1.17.0.6"
[scala.version_for_resolve]
jvm-default = "2.13.8"ripe-gigabyte-88964
03/13/2023, 1:47 PM<http://main.tf|main.tf> and BUILD - the build file has one line: terraform_module()ripe-gigabyte-88964
03/13/2023, 2:09 PM:: on the end. Except now I'm hitting an exception:
10:08:19.28 [ERROR] 1 Exception encountered:
Engine traceback:
in `fmt` goal
in Format with `terraform fmt`
Exception: Error hashing/capturing URL fetch response: Downloaded file was larger than expected digestripe-gigabyte-88964
03/13/2023, 3:55 PMknown_versions for terraform 1.0.7 must be wrong. I just added 1.4.0 and calculated the file size myself and it worked.happy-kitchen-89482
03/13/2023, 3:56 PMknown_versionshappy-kitchen-89482
03/13/2023, 3:56 PMhappy-kitchen-89482
03/13/2023, 4:23 PMhappy-kitchen-89482
03/13/2023, 4:24 PMhappy-kitchen-89482
03/13/2023, 4:25 PMbuild-support/bin/terraform_tool_versions.py, so it's weird that there would be an errorripe-gigabyte-88964
03/13/2023, 6:36 PMhappy-kitchen-89482
03/13/2023, 7:05 PMhappy-kitchen-89482
03/13/2023, 7:06 PMripe-gigabyte-88964
03/13/2023, 8:59 PMinit, plan, or apply commands built in the terraform backend yet. The former is especially problematic because you can't actually run validate, which is called when running pants check, without running init first.
IMO, check should run init, validate, and plan. It would also be super helpful to have apply available so I don't have to double download the terraform executable during CI/CD runs. Gonna open a handful of issues on Github and try to find some time this week to tackle them.happy-kitchen-89482
03/13/2023, 9:15 PMripe-gigabyte-88964
03/13/2023, 9:28 PM