Skip to content

opentofu: update to 1.12.1.#60863

Open
al20ov wants to merge 1 commit into
void-linux:masterfrom
al20ov:opentofu-1.12.1
Open

opentofu: update to 1.12.1.#60863
al20ov wants to merge 1 commit into
void-linux:masterfrom
al20ov:opentofu-1.12.1

Conversation

@al20ov
Copy link
Copy Markdown
Contributor

@al20ov al20ov commented Jun 2, 2026

Testing the changes

  • I tested the changes in this PR: YES

Local build testing

  • I built this PR locally for my native architecture, x86_64-glibc
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • x86_64-musl
    • i686

Two more tests were added with the same issue that required the make_check_args="-skip=TestPrimaryChdirOption" previously (tf plans generated with an older or -dev version of tofu) which resulted in these errors:

--- FAIL: TestPrimaryChdirOption (0.08s)
    primary_test.go:192: failed to read plan file: plan file was created by OpenTofu or Terraform 1.12.1-dev, but this is 1.12.1; plan files cannot be transferred between different versions of OpenTofu / Terraform
FAIL

--- FAIL: TestStateViews (0.01s)
    --- FAIL: TestStateViews/showResourceState_with_proper_state (0.00s)
        state_test.go:676: unexpected output on line 0:
              map[string]any{
              	"format_version":    string("1.0"),
            - 	"terraform_version": string("1.12.0"),
            + 	"terraform_version": string("1.12.1"),
              	"values":            map[string]any{"root_module": map[string]any{"resources": []any{map[string]any{"address": string("test_resource.foo"), "mode": string("managed"), "name": string("foo"), "provider_name": string("registry.opentofu.org/hashicorp/test"), ...}}}},
              }
        state_test.go:700: unexpected output on line 0:
              map[string]any{
              	"format_version":    string("1.0"),
            - 	"terraform_version": string("1.12.0"),
            + 	"terraform_version": string("1.12.1"),
              	"values":            map[string]any{"root_module": map[string]any{"resources": []any{map[string]any{"address": string("test_resource.foo"), "mode": string("managed"), "name": string("foo"), "provider_name": string("registry.opentofu.org/hashicorp/test"), ...}}}},
              }
FAIL

--- FAIL: TestEphemeralWorkflowAndOutput (4.89s)
    --- FAIL: TestEphemeralWorkflowAndOutput/proto_version_6 (2.40s)
        primary_test.go:333: failed to read the plan file: plan file was created by OpenTofu or Terraform 1.12.1-dev, but this is 1.12.1; plan files cannot be transferred between different versions of OpenTofu / Terraform
    --- FAIL: TestEphemeralWorkflowAndOutput/proto_version_5 (2.48s)
        primary_test.go:333: failed to read the plan file: plan file was created by OpenTofu or Terraform 1.12.1-dev, but this is 1.12.1; plan files cannot be transferred between different versions of OpenTofu / Terraform
FAIL

So it was either make_check_args="-skip=TestPrimaryChdirOption|TestStateViews|TestEphemeralWorkflowAndOutput" or patching out the tf plan version check to get these tests to run.

@Emru1

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