Skip to content

Commit

Permalink
Remove the forced error if glob characters in project path (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Apr 16, 2020
1 parent df9deaf commit 1ba79b7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/ddevapp/config.go
Expand Up @@ -116,15 +116,6 @@ func NewApp(appRoot string, includeOverrides bool, provider string) (*DdevApp, e
}
app.SetInstrumentationAppTags()

// Make sure that not in a dir with glob pattern
hasGlob, err := regexp.Match(`[\[\]\{\}\*\?]`, []byte(appRoot))
if err != nil {
return app, err
}
if hasGlob {
return app, fmt.Errorf("Project directory contains a glob pattern, please use a directory that does not contain `{}[]*?`")
}

// Rendered yaml is not there until after ddev config or ddev start
if fileutil.FileExists(app.DockerComposeFullRenderedYAMLPath()) {
content, err := fileutil.ReadFileIntoString(app.DockerComposeFullRenderedYAMLPath())
Expand Down

0 comments on commit 1ba79b7

Please sign in to comment.