gspencer@gspencer-mlt autobots % bazel run @multitool//tools/terraform version
INFO: Analyzed target @@rules_multitool~~multitool~multitool//tools/terraform:terraform (9 packages loaded, 66 targets configured).
INFO: Found 1 target...
Target @@rules_multitool~~multitool~multitool//tools/terraform:terraform up-to-date:
bazel-bin/external/rules_multitool~~multitool~multitool/tools/terraform/terraform
INFO: Elapsed time: 2.124s, Critical Path: 0.04s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/external/rules_multitool~~multitool~multitool/tools/terraform/terraform version
Terraform v1.7.5
on darwin_arm64
Your version of Terraform is out of date! The latest version
is 1.8.5. You can update by downloading from https://www.terraform.io/downloads.html
gspencer@gspencer-mlt autobots % bazel run @multitool//tools/terraform_v185 version
INFO: Analyzed target @@rules_multitool~~multitool~multitool//tools/terraform_v185:terraform_v185 (1 packages loaded, 3 targets configured).
INFO: Found 1 target...
Target @@rules_multitool~~multitool~multitool//tools/terraform_v185:terraform_v185 up-to-date:
bazel-bin/external/rules_multitool~~multitool~multitool/tools/terraform_v185/terraform_v185
INFO: Elapsed time: 0.651s, Critical Path: 0.05s
INFO: 5 processes: 5 internal.
INFO: Build completed successfully, 5 total actions
INFO: Running command line: bazel-bin/external/rules_multitool~~multitool~multitool/tools/terraform_v185/terraform_v185 version
Terraform v1.8.5
on darwin_arm64
It appears to me that the first time a tool is loaded.. that version wins. I assume that the aspect_rules_lint module is loaded first and there for is the known "terraform" tool. The silent error gets me though..
For now I can work around with the pattern above, but it feels subpar.
Okay let's say that I pull in
aspect_rules_lint
v0.21.0 which under the hood is using terraform v1.7.5, with this lockfileI see the following
It appears to me that the first time a tool is loaded.. that version wins. I assume that the
aspect_rules_lint
module is loaded first and there for is the known "terraform" tool. The silent error gets me though..For now I can work around with the pattern above, but it feels subpar.