diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-19 18:05:39 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-19 18:10:11 +0900 |
| commit | 3010a209b52c3103a1f2dea5442aa1e7428855b4 (patch) | |
| tree | a05e7cb23b6982b6843f748fc82e591262a56326 /internal/rosa/state.go | |
| parent | e65a3b435ca4a000a41ddbba68a07bf7c3036f06 (diff) | |
internal/rosa/azalea: pass through source ident
For source handle special case.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
| -rw-r--r-- | internal/rosa/state.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go index 388a6cc5..2581bb75 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -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), |
