tfdiags: Simple helper for creating "sourceless" diagnostics
tfdiags: Simple helper for creating "sourceless" diagnostics

While diagnostics are primarily designed for reporting problems in
configuration, they can also be used for errors and warnings about the
environment Terraform is running in, such as inability to reach a remote
service, etc.

Function Sourceless makes it easy to produce such diagnostics with the
customary summary/detail structure. When these diagnostics are rendered
they will have no source code snippet and will instead just include the
English-language content.

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk