internal/rosa: handle nil source
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 3m15s
Test / Hakurei (push) Successful in 4m39s
Test / ShareFS (push) Successful in 4m52s
Test / Sandbox (race detector) (push) Successful in 6m7s
Test / Hakurei (race detector) (push) Successful in 7m23s
Test / Flake checks (push) Successful in 1m6s

Source is not always required. This improves flexibility.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
cat
2026-06-28 18:02:54 +09:00
parent cf7c34555c
commit d1319a497c
3 changed files with 18 additions and 15 deletions
+6 -4
View File
@@ -1134,10 +1134,12 @@ func (ctx *evalContext) pf(
}
default:
panic(azalea.TypeError{
Concrete: reflect.TypeOf(sourceA),
Asserted: reflect.TypeFor[pkg.Artifact](),
})
if sourceA != nil {
panic(azalea.TypeError{
Concrete: reflect.TypeOf(sourceA),
Asserted: reflect.TypeFor[pkg.Artifact](),
})
}
}
v = cachedArtifact{&meta, ctx.t.NewPackage(