opentofu/internal/backend/local
Martin Atkins 4660dacd59 command: Prototype of handling errored plans
This is a prototype of how the CLI layer might make use of Terraform
Core's ability to produce a partial plan if it encounters an error during
planning, with two new situations:

- When using local CLI workflow, Terraform will show the partial plan
  before showing any errors.
- "terraform plan" has a new option -always-out=..., which is similar to
  the existing -out=... but additionally instructs Terraform to produce
  a plan file even if the plan is incomplete due to errors. This means
  that the plan can still be inspected by external UI implementations.

This is just a prototype to explore how these parts might fit together.
It's not a complete implementation and so should not be shipped. In
particular, it doesn't include any mention of a plan being incomplete in
the "terraform show -json" output or in the "terraform plan -json" output,
both of which would be required for a complete solution.
2022-12-12 17:17:42 -05:00
..
testdata core: Functional-style API for terraform.Context 2021-08-30 13:59:14 -07:00
backend_apply_test.go check for cancellation before apply confirmation 2022-05-02 14:09:47 -04:00
backend_apply.go command: Prototype of handling errored plans 2022-12-12 17:17:42 -05:00
backend_local_test.go Fix test compilation errors caused by interface change 2022-11-21 14:35:33 -05:00
backend_local.go backend/local: Remove unused DisablePlanFileStateLineageChecks flag 2022-01-13 11:00:10 -06:00
backend_plan_test.go backend/local: Check dependency lock consistency before any operations 2021-10-01 14:43:58 -07:00
backend_plan.go command: Prototype of handling errored plans 2022-12-12 17:17:42 -05:00
backend_refresh_test.go backend/local: Check dependency lock consistency before any operations 2021-10-01 14:43:58 -07:00
backend_refresh.go update persist state 2022-08-25 14:57:40 -05:00
backend_test.go Fix test compilation errors caused by interface change 2022-11-21 14:35:33 -05:00
backend.go Use safe or force workspace delete for cloud backend 2022-11-21 14:35:33 -05:00
cli.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
hook_state_test.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
hook_state.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
local_test.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
testing.go Use safe or force workspace delete for cloud backend 2022-11-21 14:35:33 -05:00