aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-09 09:30:56 +0900
committerOphestra <cat@gensokyo.uk>2026-07-09 09:34:27 +0900
commit2f1534853a187018b94754e5ae2f009d7c2ae347 (patch)
tree2ef558652e55a7f35eabf38a55140b2be0f8692d /internal/rosa
parent3f8e111d1c96da034ea31846d46ae1fe4bf9f93c (diff)
internal/pkg: consolidate cache attributes
This makes the interface stable. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
-rw-r--r--internal/rosa/mirror_test.go2
-rw-r--r--internal/rosa/rosa_test.go4
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/rosa/mirror_test.go b/internal/rosa/mirror_test.go
index acd45c39..6c3ec92e 100644
--- a/internal/rosa/mirror_test.go
+++ b/internal/rosa/mirror_test.go
@@ -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)
}
diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go
index e612c11d..c2a6451c 100644
--- a/internal/rosa/rosa_test.go
+++ b/internal/rosa/rosa_test.go
@@ -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)
}
}