We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54dd65a commit 0f6f57fCopy full SHA for 0f6f57f
pkg/controller/registry/resolver/sat/dict.go
@@ -159,7 +159,6 @@ func compileDict(installables []Installable) *dict {
159
im := d.c.Lit()
160
d.installables[im] = installable
161
d.lits[installable.Identifier()] = im
162
- weights = append(weights, im)
163
}
164
165
// Then build the constraints:
@@ -170,9 +169,7 @@ func compileDict(installables []Installable) *dict {
170
169
171
clauses := make([]z.Lit, 0, x.weight)
172
for w := 0; w < x.weight; w++ {
173
- wm := d.c.Lit()
174
- weights = append(weights, wm)
175
- clauses = append(clauses, d.c.Implies(d.LitOf(installable.Identifier()), wm))
+ weights = append(weights, d.lits[installable.Identifier()])
176
177
178
if !x.Empty() {
0 commit comments