fix(sync): do not update vcs info of failed packages (#1901)

* extract srcinfo service to pkg

* take into account failed installs for vcs update. Fixes #1892

* fix tests
This commit is contained in:
Jo
2023-01-23 21:43:58 +00:00
committed by GitHub
parent 04c4b0aa59
commit 1bfbd01f94
8 changed files with 203 additions and 131 deletions

3
vcs.go
View File

@@ -13,6 +13,7 @@ import (
"github.com/Jguer/yay/v11/pkg/download"
"github.com/Jguer/yay/v11/pkg/query"
"github.com/Jguer/yay/v11/pkg/settings"
"github.com/Jguer/yay/v11/pkg/srcinfo"
"github.com/Jguer/yay/v11/pkg/stringset"
"github.com/Jguer/yay/v11/pkg/text"
)
@@ -51,7 +52,7 @@ func createDevelDB(ctx context.Context, config *settings.Configuration, dbExecut
return err
}
srcinfos, err := parseSrcinfoFiles(pkgBuildDirsByBase, false)
srcinfos, err := srcinfo.ParseSrcinfoFilesByBase(pkgBuildDirsByBase, false)
if err != nil {
return err
}