diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-23 13:55:17 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-23 14:00:18 +0900 |
| commit | e5a40942982cae870f52a3d254feba70c0e46136 (patch) | |
| tree | b0f751324bd67edaa49c95f20204623264a1fa85 /internal/rosa/state.go | |
| parent | 410c4f8bb08939c2de370da4ff6f6b13f48aaa1e (diff) | |
internal/rosa: remove unused helpers
These are no longer needed after migration.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
| -rw-r--r-- | internal/rosa/state.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go index 399e6dc9..5c822426 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -411,7 +411,7 @@ func (s *S) Collect() (handles P) { type deferredGit struct { url string tag string - checksum string + checksum pkg.Checksum } // getFrame must be called before accessing s. @@ -661,13 +661,15 @@ func (s *S) getFrame() azalea.Frame { args azalea.FArgs, ) (v any, set bool, err error) { var a deferredGit + var checksum string if err = args.Apply(map[unique.Handle[azalea.Ident]]any{ k("url"): &a.url, k("tag"): &a.tag, - k("checksum"): &a.checksum, + k("checksum"): &checksum, }); err != nil { return } + a.checksum = mustDecode(checksum) v = a set = true return @@ -1047,7 +1049,7 @@ func (ctx *evalContext) pf( source = p case deferredGit: - source = ctx.t.newTagRemote(p.url, p.tag, p.checksum) + source = ctx.t.NewViaGit(p.url, "refs/tags/"+p.tag, p.checksum) case azalea.Ident: var _meta *Metadata |
