// providerDevOverrideInitWarnings 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.
//
// The init command can use this to include a warning that the results
// may differ from what's expected due to the development overrides. For
// other commands, providerDevOverrideRuntimeWarnings should be used.
providerDevOverrideInitWarnings 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.

The init command can use this to include a warning that the results
may differ from what's expected due to the development overrides. For
other commands, providerDevOverrideRuntimeWarnings should be used.
// providerDevOverrideInitWarnings 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 . // // The init command can use this to include a warning that the results // may differ from what ' s expected due to the development overrides . For // other commands providerDevOverrideRuntimeWarnings should be used .
func (m *Meta) providerDevOverrideInitWarnings() 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("\nSkip terraform init when using provider development overrides. It is not necessary and may error unexpectedly.")
	return tfdiags.Diagnostics{
		tfdiags.Sourceless(
			tfdiags.Warning,
			"Provider development overrides are in effect",
			detailMsg.String(),
		),
	}
}
func ( m * Meta ) providerDevOverrideInitWarnings ( ) 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 ( ) , ) , } }
providerDevOverrideInitWarnings returns a diagnostics that contains at
least one warning if and only if there is at least one provider development
override in effect.
providerDevOverrideInitWarnings returns a diagnostics that contains at least one warning if and only if there is at least one provider development override in effect .