aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-21 23:06:34 +0900
committerOphestra <cat@gensokyo.uk>2026-05-21 23:06:34 +0900
commit68a91523b9e58ee8a9f86723d616e82c0645b64a (patch)
treea16f116b6b606d50bd2e887a173b981552ca0eb0 /internal/rosa/state.go
parent564732162223e76a307bb06e132e9f0351f239bf (diff)
internal/rosa/package: migrate bison
This is the final remaining trivial legacy artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go29
1 files changed, 14 insertions, 15 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index 3fae800c..4a324094 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -369,21 +369,6 @@ func (s *S) MustRegister(name string, f Artifact) {
}
}
-// mustRegister registers an [Artifact] with the old function signature.
-//
-// Deprecated: Artifacts should be migrated to Register.
-func (s *S) mustRegister(
- f func(t Toolchain) (pkg.Artifact, string),
- meta *Metadata,
-) {
- s.MustRegister(meta.Name, func(t Toolchain) (*Metadata, pkg.Artifact) {
- v := *meta
- a, version := f(t)
- v.Version = version
- return &v, a
- })
-}
-
// count returns the number of [Artifact] registered to s.
func (s *S) count() int {
return int(s.artifactCount.Load())
@@ -599,6 +584,20 @@ func (s *S) getFrame() azalea.Frame {
return
}},
+ k("skipGNUTests"): {F: func(
+ args azalea.FArgs,
+ ) (v any, set bool, err error) {
+ var tests []int64
+ if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
+ k("tests"): &tests,
+ }); err != nil {
+ return
+ }
+ v = skipGNUTests(tests...)
+ set = true
+ return
+ }},
+
// intenral/pkg built-ins
k("remoteTar"): {F: func(