Bladeren bron

Go runtime waitgroup error fix

Mohammed Nafees 4 jaren geleden
bovenliggende
commit
3b2838393d
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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(