Skip to content

Commit

Permalink
feat: terraform mutex for parallel lint (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Sep 19, 2024
1 parent aa020c1 commit 1ef0642
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
set -eu
curdir=$(pwd)
cd "${1}"
terraform init -backend=false >/dev/null
terraform validate
flock -x /workspace/.terraform.lock -c "terraform init -backend=false >/dev/null"
flock -s /workspace/.terraform.lock -c "terraform validate"
cd "$curdir"

0 comments on commit 1ef0642

Please sign in to comment.