forked from rosa/hakurei
internal/rosa/azalea: pass through source ident
For source handle special case. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user