瀏覽代碼

Go runtime waitgroup error fix

Mohammed Nafees 4 年之前
父節點
當前提交
3b2838393d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      internal/integrations/buildpacks/api_go.go

+ 2 - 0
internal/integrations/buildpacks/api_go.go

@@ -37,6 +37,7 @@ func (runtime *apiGoRuntime) detectMod(results chan struct {
 			bool
 		}{mod, false}
 	}
+	runtime.wg.Done()
 }
 
 func (runtime *apiGoRuntime) detectDep(results chan struct {
@@ -67,6 +68,7 @@ func (runtime *apiGoRuntime) detectDep(results chan struct {
 			bool
 		}{dep, false}
 	}
+	runtime.wg.Done()
 }
 
 func (runtime *apiGoRuntime) Detect(