From 86ef1ec077c4c86faf8b4f8e350912462253d15d Mon Sep 17 00:00:00 2001 From: morganamilo Date: Thu, 9 Aug 2018 17:01:29 +0100 Subject: [PATCH] Include info in the lock --- vcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcs.go b/vcs.go index ac897f19..41569296 100644 --- a/vcs.go +++ b/vcs.go @@ -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()