diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-19 01:43:53 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-19 01:44:23 +0900 |
| commit | 6e9e8c74f36e31117647c4414b98b1fda95b18a1 (patch) | |
| tree | 7bc449100034c4dbcadfb22a71f9798d079291e2 /internal/rosa/state.go | |
| parent | 4d60fa5632246d5e1c355573dc0fd0e85ca3dcd3 (diff) | |
internal/rosa: migrate buildcatrust
Other nss-related packages are unlikely to be migrated any time soon.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
| -rw-r--r-- | internal/rosa/state.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go index 7b858ed9..c4c4519a 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -524,6 +524,22 @@ func (s *S) getFrame() azalea.Frame { return }}, + k("remoteGitHub"): {F: func( + args azalea.FArgs, + ) (v any, set bool, err error) { + var suffix, tag, checksum string + if err = args.Apply(map[unique.Handle[azalea.Ident]]any{ + k("suffix"): &suffix, + k("tag"): &tag, + k("checksum"): &checksum, + }); err != nil { + return + } + v = newFromGitHub(suffix, tag, checksum) + set = true + return + }}, + // high-level helpers k("make"): {F: func( @@ -555,6 +571,26 @@ func (s *S) getFrame() azalea.Frame { set = true return }}, + + k("pip"): {F: func( + args azalea.FArgs, + ) (v any, set bool, err error) { + var attr PipHelper + if err = args.Apply(map[unique.Handle[azalea.Ident]]any{ + k("append"): &attr.Append, + k("buildIsolation"): &attr.BuildIsolation, + k("enterSource"): &attr.EnterSource, + k("install"): &attr.Install, + k("skipCheck"): &attr.SkipCheck, + k("check"): &attr.Check, + k("postInstall"): &attr.Script, + }); err != nil { + return + } + v = &attr + set = true + return + }}, } }) return s.frame |
