forked from rosa/hakurei
internal/pkg: consolidate cache attributes
This makes the interface stable. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -31,7 +31,7 @@ func TestMirror(t *testing.T) {
|
||||
msg.SwapVerbose(testing.Verbose())
|
||||
|
||||
var c *pkg.Cache
|
||||
c, err = pkg.Open(t.Context(), msg, 0, 0, 0, base)
|
||||
c, err = pkg.Open(t.Context(), msg, base, nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -61,7 +61,9 @@ func getCache(t *testing.T) *pkg.Cache {
|
||||
msg := message.New(log.New(os.Stderr, "rosa: ", 0))
|
||||
msg.SwapVerbose(true)
|
||||
|
||||
if buildTestCache, err = pkg.Open(ctx, msg, pkg.CSuppressInit, 0, 0, a); err != nil {
|
||||
if buildTestCache, err = pkg.Open(ctx, msg, a, &pkg.CacheAttr{
|
||||
Flags: pkg.CSuppressInit,
|
||||
}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user