CheckExistingAppInApproot looks to see if we already have a project in this approot with different name
()
| 2323 | |
| 2324 | // CheckExistingAppInApproot looks to see if we already have a project in this approot with different name |
| 2325 | func (app *DdevApp) CheckExistingAppInApproot() error { |
| 2326 | pList := globalconfig.GetGlobalProjectList() |
| 2327 | for name, v := range pList { |
| 2328 | if app.AppRoot == v.AppRoot && name != app.Name { |
| 2329 | return fmt.Errorf(`this project root '%s' already contains a project named '%s'. You may want to remove the existing project with "ddev stop --unlist %s"`, v.AppRoot, name, name) |
| 2330 | } |
| 2331 | } |
| 2332 | return nil |
| 2333 | } |
| 2334 | |
| 2335 | //go:embed webserver_config_assets |
| 2336 | var webserverConfigAssets embed.FS |
no test coverage detected