Include info in the lock

This commit is contained in:
morganamilo 2018-08-09 17:01:29 +01:00
parent 602f386b03
commit 86ef1ec077
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

2
vcs.go
View File

@ -130,13 +130,13 @@ func updateVCSData(pkgName string, sources []gosrc.ArchString, mux *sync.Mutex,
return
}
mux.Lock()
info[url] = shaInfo{
protocols,
branch,
commit,
}
mux.Lock()
savedInfo[pkgName] = info
fmt.Println(bold(yellow(arrow)) + " Found git repo: " + cyan(url))
saveVCSInfo()