internal/rosa/azalea: pass through source ident

For source handle special case.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 18:05:39 +09:00
parent e65a3b435c
commit 3010a209b5
3 changed files with 62 additions and 11 deletions

View File

@@ -789,6 +789,13 @@ func (ctx *evalContext) pf(
case deferredGit:
source = ctx.t.newTagRemote(p.url, p.tag, p.checksum)
case azalea.Ident:
var _meta *Metadata
_meta, source = ctx.t.Load(H(string(p)))
if meta.Version == "" {
meta.Version = _meta.Version
}
default:
panic(azalea.TypeError{
Concrete: reflect.TypeOf(sourceA),