diff --git a/solve_basic_test.go b/solve_basic_test.go index 28374d7..38ce56e 100644 --- a/solve_basic_test.go +++ b/solve_basic_test.go @@ -294,7 +294,7 @@ func mkrevlock(pairs ...string) fixLock { return l } -// mksolution makes creates a map of project identifiers to their LockedProject +// mksolution creates a map of project identifiers to their LockedProject // result, which is sufficient to act as a solution fixture for the purposes of // most tests. // diff --git a/solve_bimodal_test.go b/solve_bimodal_test.go index 7f6288e..51774f9 100644 --- a/solve_bimodal_test.go +++ b/solve_bimodal_test.go @@ -782,7 +782,7 @@ var bimodalFixtures = map[string]bimodalFixture{ r: mksolution( "foo 1.0.0", "bar 1.0.0", - mklp("baz 1.0.0", "baz/qux"), + mklp("baz 1.0.0", "qux"), ), }, "require impossible subpackage": { @@ -900,10 +900,14 @@ func (f bimodalFixture) rootmanifest() RootManifest { tc: pcSliceToMap(f.ds[0].devdeps), ovr: f.ovr, ig: make(map[string]bool), + req: make(map[string]bool), } for _, ig := range f.ignore { m.ig[ig] = true } + for _, req := range f.require { + m.req[req] = true + } return m }