Skip to content

Commit b8c3299

Browse files
committed
chore(terragrunt): disable live lockfile generation with readonly init flag
1 parent 191257f commit b8c3299

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

terragrunt/live/website/terragrunt.hcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ include "root" {
33
}
44

55
terraform {
6+
# Prevent OpenTofu/Terraform from generating a .terraform.lock.hcl file
7+
# inside the live Terragrunt directory. Live folders do not own provider
8+
# versions — the module lockfile in terraform/website/ is the single
9+
# source of truth. Without this flag, `terragrunt init` would create a
10+
# local lockfile here, causing CI to detect uncommitted changes.
11+
extra_arguments "disable_lockfile" {
12+
commands = ["init"]
13+
arguments = ["-lockfile=readonly"]
14+
}
615
source = "../../../terraform/website/"
716
}
817

0 commit comments

Comments
 (0)