mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
3d5039f1f3
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.Plan does not yet do anything with its new context, but this gets the context plumbed in enough that we should be able to pass values like telemetry spans all the way from the top-level in future. OpenTofu has some historical situational private uses of context.Context to handle the graceful shutdown behaviors. Those use context.Context as a private implementation detail rather than public API, and so this commit leaves them as-is and adds a new "primary context" alongside. Hopefully in future refactoring we can simplify this to use the primary context also as the primary cancellation signal, but that's too risky a change to bundle in with this otherwise-mostly-harmless context plumbing. 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> |
||
---|---|---|
.. | ||
init | ||
local | ||
remote | ||
remote-state | ||
backend_test.go | ||
backend.go | ||
cli.go | ||
operation_type.go | ||
operationtype_string.go | ||
testing.go | ||
unparsed_value_test.go | ||
unparsed_value.go |