terraform/internal/backend
Sarah French 02a4ddce1b
fix: Fail an apply command if the plan file was generated for a workspace that isn't the selected workspace (#37955)
* fix: Fail apply command if the plan file was generated for a workspace that isn't the selected workspace.

* Add change file

* test: Update test helper to include Workspace name in plan representation

* fix: Make error message more generic, so is applicable to backend and cloud blocks.

* fix: Make error message specific to backend or cloud block

* test: Add separate tests for backend/cloud usage

* test: Update remaining tests to include a value for Workspace in mocked plans

* Apply suggestions from code review

Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>

* fix: Panic when a plan file has missing workspace data

* test: Update test to match changes in error text

---------

Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>
2026-02-03 15:29:58 +00:00
..
backendbase Update go-cty and HCL for 1.13 release (#37298) 2025-07-09 13:05:18 +02:00
backendrun PSS: Allow pluggable state store configuration to be stored in a plan file (#37956) 2025-12-11 11:41:36 +00:00
init Added Terraform backend implementation for OCI Object Storage (#36872) 2025-04-22 09:38:18 +01:00
local fix: Fail an apply command if the plan file was generated for a workspace that isn't the selected workspace (#37955) 2026-02-03 15:29:58 +00:00
pluggable refactor: let panic arise directly if the provider doesn't implement providers.StateStoreChunkSizeSetter (#37942) 2025-11-28 13:48:32 +00:00
remote Update remote.Client interface's methods to return diagnostics instead of primitive errors (#37502) 2025-09-05 11:04:47 +01:00
remote-state Merge pull request #38047 from hashicorp/s3/aws-sdk-go-base-upgrade 2026-01-20 11:00:44 -05:00
backend.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
testing.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00