internal/rosa: remove unused receiver
All checks were successful
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m46s
Test / Hakurei (push) Successful in 3m52s
Test / ShareFS (push) Successful in 4m0s
Test / Hpkg (push) Successful in 4m30s
Test / Sandbox (race detector) (push) Successful in 5m7s
Test / Hakurei (race detector) (push) Successful in 5m56s
Test / Flake checks (push) Successful in 1m36s

This returns the preset itself, it is up to the caller to load the underlying artifact.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-29 17:52:50 +09:00
parent 2d63ea8fee
commit b26bc05bb0
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ func main() {
if len(args) != 1 {
return errors.New("cure requires 1 argument")
}
if p, ok := rosa.Std.ResolveName(args[0]); !ok {
if p, ok := rosa.ResolveName(args[0]); !ok {
return fmt.Errorf("unsupported artifact %q", args[0])
} else {
pathname, _, err := cache.Cure(rosa.Std.Load(p))

View File

@@ -85,7 +85,7 @@ func (t Toolchain) Load(p PArtifact) pkg.Artifact {
}
// ResolveName returns a [PArtifact] by name.
func (t Toolchain) ResolveName(name string) (p PArtifact, ok bool) {
func ResolveName(name string) (p PArtifact, ok bool) {
p, ok = map[string]PArtifact{
"acl": ACL,
"attr": Attr,