Skip to content

Commit 65fa6b0

Browse files
Use cached resolvers to compute disqualifications (#1892)
Currently, we build a fresh resolver everytime we compute disqualifications even though, we might have that resolver cached already.
1 parent 950ddd5 commit 65fa6b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apk/apk/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ func disqualifyDifference(ctx context.Context, byArch map[string][]NamedIndex) m
11641164
}
11651165

11661166
for arch := range allowablePackages {
1167-
p := newPkgResolver(ctx, byArch[arch])
1167+
p := globalResolverCache.Get(ctx, byArch[arch])
11681168
for otherArch, allowed := range allowablePackages {
11691169
if otherArch == arch {
11701170
continue

0 commit comments

Comments
 (0)