// providerDevOverrideRuntimeWarnings returns a diagnostics that contains at
// least one warning if and only if there is at least one provider development
// override in effect. If not, the result is always empty. The result never
// contains error diagnostics.
//
// Certain commands can use this to include a warning that their results
// may differ from what's expected due to the development overrides. It's
// not necessary to bother the user with this warning on every command, but
// it's helpful to return it on commands that have externally-visible side
// effects and on commands that are used to verify conformance to schemas.
//
// See providerDevOverrideInitWarnings for warnings specific to the init
// command.
providerDevOverrideRuntimeWarnings returns a diagnostics that contains at
least one warning if and only if there is at least one provider development
override in effect. If not, the result is always empty. The result never
contains error diagnostics.

Certain commands can use this to include a warning that their results
may differ from what's expected due to the development overrides. It's
not necessary to bother the user with this warning on every command, but
it's helpful to return it on commands that have externally-visible side
effects and on commands that are used to verify conformance to schemas.

See providerDevOverrideInitWarnings for warnings specific to the init
command.
// providerDevOverrideRuntimeWarnings returns a diagnostics that contains at // least one warning if and only if there is at least one provider development // override in effect . If not the result is always empty . The result never // contains error diagnostics . // // Certain commands can use this to include a warning that their results // may differ from what ' s expected due to the development overrides . It ' s // not necessary to bother the user with this warning on every command but // it ' s helpful to return it on commands that have externally - visible side // effects and on commands that are used to verify conformance to schemas . // // See providerDevOverrideInitWarnings for warnings specific to the init // command .
func (m *Meta) providerDevOverrideRuntimeWarnings() tfdiags.Diagnostics {
	if len(m.ProviderDevOverrides) == 0 {
		return nil
	}
	var detailMsg strings.Builder
	detailMsg.WriteString("The following provider development overrides are set in the CLI configuration:\n")
	for addr, path := range m.ProviderDevOverrides {
		detailMsg.WriteString(fmt.Sprintf(" - %s in %s\n", addr.ForDisplay(), path))
	}
	detailMsg.WriteString("\nThe behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases.")
	return tfdiags.Diagnostics{
		tfdiags.Sourceless(
			tfdiags.Warning,
			"Provider development overrides are in effect",
			detailMsg.String(),
		),
	}
}
func ( m * Meta ) providerDevOverrideRuntimeWarnings ( ) tfdiags . Diagnostics { if len ( m . ProviderDevOverrides ) == 0 { return nil } var detailMsg strings . Builder detailMsg . WriteString ( " \n " ) for addr , path := range m . ProviderDevOverrides { detailMsg . WriteString ( fmt . Sprintf ( " \n " , addr . ForDisplay ( ) , path ) ) } detailMsg . WriteString ( " \n " ) return tfdiags . Diagnostics { tfdiags . Sourceless ( tfdiags . Warning , " " , detailMsg . String ( ) , ) , } }
providerDevOverrideRuntimeWarnings returns a diagnostics that contains at
least one warning if and only if there is at least one provider development
override in effect.
providerDevOverrideRuntimeWarnings returns a diagnostics that contains at least one warning if and only if there is at least one provider development override in effect .