log.Println("WARNING: We do not support custom nugetConfigPath yet. Please make sure your default nuget.config works. (usually ~/.nuget/NuGet/NuGet.Config)")
// Prepare nuget local repo
depsToSync:=depsDeduplicate(allDeps)
varwgsync.WaitGroup
concurrencyLimitChan:=make(chanint,64)
forindex_,dep_:=rangedepsToSync{
wg.Add(1)
concurrencyLimitChan<-1// will block if there's already 64 goroutine running
gofunc(indexint,depdependencyItem){
deferwg.Done()
deferfunc(){<-concurrencyLimitChan;wg.Done()}()
log.Printf("[%v/%v] Begin downloading: %v:%v as var %v",index,len(depsToSync),dep.pkgName,dep.targetNetVer,dep.envName)