MCPcopy Create free account
hub / github.com/ddev/ddev / CheckDeprecations

Method CheckDeprecations

pkg/ddevapp/config.go:685–691  ·  view source on GitHub ↗

CheckDeprecations warns the user if anything in use is deprecated.

()

Source from the content-addressed store, hash-verified

683
684// CheckDeprecations warns the user if anything in use is deprecated.
685func (app *DdevApp) CheckDeprecations() {
686 if composerV1Regex.MatchString(app.ComposerVersion) {
687 app.ComposerVersion = "2.2"
688 util.WarningOnce(`Project '%s' now uses Composer v2.2 LTS. Composer v1 is no longer supported by Packagist, see https://blog.packagist.com/shutting-down-packagist-org-support-for-composer-1-x/
689Run 'ddev config --auto' to remove this Composer warning.`, app.Name)
690 }
691}
692
693// FixObsolete removes files that may be obsolete, etc.
694func (app *DdevApp) FixObsolete() {

Callers 1

StartMethod · 0.95

Calls 1

WarningOnceFunction · 0.92

Tested by

no test coverage detected