aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/report.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-17 16:44:13 +0900
committerOphestra <cat@gensokyo.uk>2026-05-17 17:50:30 +0900
commit38bc2c750842826c5af4f66abe3e1905258cd274 (patch)
tree75e1d17961fd980ff8b20a9dfd937789de10836e /internal/rosa/report.go
parent30eb0d6a613ad268f6805ccbcdcabf158e7f526f (diff)
internal/rosa: pass stage alongside state
This cleans up many function signatures. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/report.go')
-rw-r--r--internal/rosa/report.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/rosa/report.go b/internal/rosa/report.go
index 01c3cf91..1fbd0e43 100644
--- a/internal/rosa/report.go
+++ b/internal/rosa/report.go
@@ -32,12 +32,13 @@ func WriteReport(msg message.Msg, w io.Writer, c *pkg.Cache) error {
zero [wordSize]byte
buf [len(pkg.ID{}) + wordSize]byte
)
+ t := native.Std()
for _, p := range native.Collect() {
- a, _ := native.Load(Std, p)
meta := native.Get(p)
if meta == nil {
return errors.New("artifact " + p.String() + " in inconsistent state")
}
+ a, _ := t.MustLoad(p)
if _, ok := a.(pkg.FileArtifact); ok {
msg.Verbosef("skipping file artifact %s", meta.Name)
continue