From 173518ed9044a434e65ccff0001820d13bab1726 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Fri, 18 Apr 2025 17:35:43 +0200 Subject: [PATCH] setup: reset lock file, prevents `Error: Failed to install provider` error example: ``` Error while installing hashicorp/external v2.3.4: the local package for registry.opentofu.org/hashicorp/external 2.3.4 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); for more information: https://opentofu.org/docs/language/files/dependency-lock/#checksum-verification ``` --- launch/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/launch/default.nix b/launch/default.nix index 6ea02031..8615ffd1 100644 --- a/launch/default.nix +++ b/launch/default.nix @@ -14,6 +14,7 @@ let inherit (pkgs) lib; setup = pkgs.writeScriptBin "setup" '' echo '${lib.strings.toJSON sources}' > .npins.json + rm -f .terraform.lock.hcl rm -rf .terraform/ tofu init '';