Просмотр исходного кода

Go runtime waitgroup error fix

Mohammed Nafees 4 лет назад
Родитель
Сommit
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(