mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 15:13:56 -06:00
9cadb097ba
This continues our ongoing effort to get a coherent chain of context.Context all the way from "package main" to all of our calls to external components. Context.Validate doesn't yet do anything with its new context, but we'll plumb this deeper in future. Since the local backend's implementation of backend.Local.LocalRun calls Validate on the given configuration before returning, it this also extends that interface method to take a context, and so the various commands that directly create "local runs" (rather than going through the backend operation API) now all pass in a context derived from the one created in "package main". All of the _test.go file updates here are purely mechanical additions of the extra argument. No test is materially modified by this change, which is intentional to get some assurance that isn't a breaking change. Signed-off-by: Martin Atkins <mart@degeneration.co.uk> |
||
---|---|---|
.. | ||
cloudplan | ||
e2e | ||
testdata | ||
backend_apply_test.go | ||
backend_apply.go | ||
backend_cli.go | ||
backend_colorize.go | ||
backend_common.go | ||
backend_context_test.go | ||
backend_context.go | ||
backend_plan_test.go | ||
backend_plan.go | ||
backend_refresh_test.go | ||
backend_run_warning_test.go | ||
backend_run_warning.go | ||
backend_show_test.go | ||
backend_show.go | ||
backend_taskStage_policyEvaluation_test.go | ||
backend_taskStage_policyEvaluation.go | ||
backend_taskStage_taskResults_test.go | ||
backend_taskStage_taskResults.go | ||
backend_taskStages_test.go | ||
backend_taskStages.go | ||
backend_test.go | ||
backend.go | ||
cloud_integration.go | ||
cloud_variables_test.go | ||
cloud_variables.go | ||
configchangemode_string.go | ||
errored.tfstate | ||
errors.go | ||
migration_test.go | ||
migration.go | ||
remote_test.go | ||
state_test.go | ||
state.go | ||
testing.go | ||
tfe_client_mock.go |