Fixed bug where Gom was not being imported at init
diff --git a/action/create.go b/action/create.go index 6b5abf8..111279d 100644 --- a/action/create.go +++ b/action/create.go
@@ -10,6 +10,7 @@ "github.com/Masterminds/glide/dependency" "github.com/Masterminds/glide/gb" "github.com/Masterminds/glide/godep" + "github.com/Masterminds/glide/gom" "github.com/Masterminds/glide/gpm" "github.com/Masterminds/glide/msg" gpath "github.com/Masterminds/glide/path" @@ -143,6 +144,9 @@ } else if d, ok := guessImportGB(absBase); ok { msg.Info("Importing GB configuration") deps = d + } else if d, ok := guessImportGom(absBase); ok { + msg.Info("Importing GB configuration") + deps = d } for _, i := range deps { @@ -177,3 +181,12 @@ return d, true } + +func guessImportGom(dir string) ([]*cfg.Dependency, bool) { + d, err := gom.Parse(dir) + if err != nil || len(d) == 0 { + return []*cfg.Dependency{}, false + } + + return d, true +}