OpenTofu 1.13 breaks legacy lock file format

Open
#3,282 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@osterman is already working on this.

Since Oct 6, 2026.

Assessment

This issue has not been assessed yet.

Description

bug
Describe the Bug

OpenTofu 1.13 no longer supports old lock file formats. This breaks our init step with:

Error: Unsupported state file format: The state file uses format version 1, which is not supported by OpenTofu 1.13.1. This state file may have been created by a newer version of OpenTofu.
Expected Behavior

Atmos with Terraform/Tofu should init successfully and parse the lock file without issue

Steps to Reproduce
  1. Upgrade to >= OpenTofu 1.13
  2. Run the init step
  3. If lock files are version 1 (perhaps 2 or 3, as well), init should fail with the reported error
Screenshots

No response

Environment

No response

Additional Context

No response

Dominant language
Go
Stars
1.4k
Forks
209
Avg merge
1d 20h
Merged PRs (30d)
86

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudposse/atmos

All issues in cloudposse/atmos

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.