terraform/tfdiags
James Bardin 503c413de2 add addresses to diagnostics
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.
2021-04-06 15:15:52 -04:00
..
config_traversals.go tfdiags: FormatErrorPrefixed 2018-10-16 19:14:11 -07:00
consolidate_warnings.go command: New -compact-warnings option 2019-12-10 11:53:14 -08:00
consolidate_warnings_test.go command: New -compact-warnings option 2019-12-10 11:53:14 -08:00
contextual.go add addresses to diagnostics 2021-04-06 15:15:52 -04:00
contextual_test.go add addresses to diagnostics 2021-04-06 15:15:52 -04:00
diagnostic.go add addresses to diagnostics 2021-04-06 15:15:52 -04:00
diagnostic_base.go add addresses to diagnostics 2021-04-06 15:15:52 -04:00
diagnostics.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
diagnostics_test.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
doc.go tfdiags: new package for normalizing error and warning messages 2017-10-06 11:46:07 -07:00
error.go tfdiags: Expose expression evaluation information from diagnostics 2018-10-18 17:12:01 -07:00
hcl.go consistent reciever names 2020-12-02 13:59:18 -05:00
hcl_test.go tfdiags: Diagnostics.ToHCL 2020-03-12 11:11:29 -07:00
rpc_friendly.go tfdiags: Expose expression evaluation information from diagnostics 2018-10-18 17:12:01 -07:00
rpc_friendly_test.go vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
severity_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
simple_warning.go tfdiags: Expose expression evaluation information from diagnostics 2018-10-18 17:12:01 -07:00
source_range.go tfdiags: SourceRange.StartString 2017-10-06 11:46:07 -07:00
sourceless.go tfdiags: Simple helper for creating "sourceless" diagnostics 2018-10-16 18:24:10 -07:00