diff --git a/store.go b/store.go index b02002de2..e46fc9b76 100644 --- a/store.go +++ b/store.go @@ -94,7 +94,12 @@ func mergeJSONData(gossConfig GossConfig, depth int, path string) GossConfig { } for _, g := range gossConfig.Gossfiles { - fpath := filepath.Join(path, g.ID()) + var fpath string + if strings.HasPrefix(g.ID(), "/") { + fpath = g.ID() + } else { + fpath = filepath.Join(path, g.ID()) + } fdir := filepath.Dir(fpath) j := mergeJSONData(ReadJSON(fpath), depth, fdir) gossConfig = mergeGoss(gossConfig, j)