Skip to content

Plan without taking the state lock - #2

Merged
oskarbarcz merged 1 commit into
mainfrom
plan-without-lock
Nov 9, 2026
Merged

oskarbarcz merged 1 commit into
mainfrom
plan-without-lock

Conversation

@oskarbarcz

Copy link
Copy Markdown
Member

DigitalOcean Spaces ignores conditional writes, so OpenTofu's lock file does not lock. A drift run that overlapped the first CI apply took the same lock and failed releasing it (the plan itself showed no changes).

Plans only read state, so the plan and drift workflows now run tofu plan -lock=false. Only apply takes the lock, and applies never run in parallel (concurrency group). The README says the same for local runs.

Spaces ignores conditional writes, so a plan that overlaps an apply takes the same lock and fails when releasing it. Plans only read state; only apply takes the lock now.
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

OpenTofu plan for infra

Commit 17d541f · No changes. Your infrastructure matches the configuration.

Show plan
 No changes. Your infrastructure matches the configuration.
 
 OpenTofu has compared your real infrastructure against your configuration and
 found no differences, so no changes are needed.

Workflow run

@oskarbarcz oskarbarcz self-assigned this Nov 9, 2026
@oskarbarcz
oskarbarcz merged commit 20ab606 into main Nov 9, 2026
1 check passed
@oskarbarcz
oskarbarcz deleted the plan-without-lock branch November 9, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant