浏览代码

filepath.Join

Michael Yang 11 月之前
父节点
当前提交
a385382ff5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/manifest.go

+ 1 - 1
server/manifest.go

@@ -118,7 +118,7 @@ func Manifests() (map[model.Name]*Manifest, error) {
 	}
 
 	// TODO(mxyng): use something less brittle
-	matches, err := filepath.Glob(fmt.Sprintf("%s/*/*/*/*", manifests))
+	matches, err := filepath.Glob(filepath.Join(manifests, "*", "*", "*", "*"))
 	if err != nil {
 		return nil, err
 	}