mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
503c413de2
Add an address argument to tfdiags.InConfigBody, and store the address string the diagnostics details. Since nearly every place where we want to annotate the diagnostics with the config context we also have some sort of address, we can use the same call to insert them both into the diagnostic. Perhaps we should rename InConfigBody and ElaborateFromConfigBody to reflect the additional address parameter, but for now we can verify this is a pattern that suits us. |
||
---|---|---|
.. | ||
config_traversals.go | ||
consolidate_warnings_test.go | ||
consolidate_warnings.go | ||
contextual_test.go | ||
contextual.go | ||
diagnostic_base.go | ||
diagnostic.go | ||
diagnostics_test.go | ||
diagnostics.go | ||
doc.go | ||
error.go | ||
hcl_test.go | ||
hcl.go | ||
rpc_friendly_test.go | ||
rpc_friendly.go | ||
severity_string.go | ||
simple_warning.go | ||
source_range.go | ||
sourceless.go |