aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-12-01 20:59:16 +0900
committerOphestra <cat@gensokyo.uk>2026-12-01 21:00:05 +0900
commitec52a96f2b479be8b880349ddfb0819382666962 (patch)
tree551168ec43b125ab17c2868b7e240d50441e5b44 /internal/rosa/state.go
parent1d73ffe341b4ec3e3dc636b8a14227ce28a4c410 (diff)
internal/rosa: net helper
This is mostly useful for fetching dependencies before a build. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index e55202c4..8426c8a6 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -1157,6 +1157,7 @@ func (ctx *evalContext) pf(
anitya int64
kc any
+ kcn string
output any
source any
helper Helper
@@ -1192,6 +1193,9 @@ func (ctx *evalContext) pf(
k("bootstrap"): &bootstrap,
k("libc"): &libc,
+ k("net"): &attr.Net,
+ k("checksumN"): &kcn,
+
k("checksum"): &kc,
k("output"): &output,
k("source"): &source,
@@ -1225,6 +1229,10 @@ func (ctx *evalContext) pf(
return
}
+ if attr.Net != "" {
+ attr.NetChecksum = mustDecode(kcn)
+ }
+
if join || (runtimes != nil && len(runtimes) == 0 && helper != nil) {
hi := helper.inputs()
meta.Runtimes = make(P, 0, len(hi)+len(inputsH)+len(runtimes))