如果锁中已经记录了某个特定提供程序的选择
文件,Terraform 将总是重新选择该版本进行安装,
即使更新的版本已经可用 ,您也可以覆盖它
behavior by adding the -upgrade option when you run terraform init, in
这样 Terraform 就会忽略现有的选择
再次选择与该版本匹配的最新可用版本
约束。
│ Error: Failed to install provider
│
│ Error while installing hashicorp/null v3.1.1: the local package for registry.terraform.io/hashicorp/null 3.1.1 doesn't match any of the checksums previously recorded in the dependency lock file
│ (this might be because the available checksums are for packages targeting different platforms)