aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/python.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/python.go')
-rw-r--r--internal/rosa/python.go25
1 files changed, 13 insertions, 12 deletions
diff --git a/internal/rosa/python.go b/internal/rosa/python.go
index a9ec642a..512c38fb 100644
--- a/internal/rosa/python.go
+++ b/internal/rosa/python.go
@@ -198,20 +198,21 @@ func (s *S) newPythonPackage(
build P, extra ...ArtifactH,
) {
name = "python-" + name
- s.mustRegister(func(t Toolchain) (pkg.Artifact, string) {
- return t.NewPackage(name, version, source, attrP, attr, slices.Concat(
- P{Python},
- extra,
- build,
- )...), version
- }, &Metadata{
- Name: name,
- Description: description,
- Website: website,
+ s.MustRegister(name, func(t Toolchain) (*Metadata, pkg.Artifact) {
+ return &Metadata{
+ Name: name,
+ Description: description,
+ Website: website,
+ Version: version,
- Dependencies: slices.Concat(P{Python}, extra),
+ Dependencies: slices.Concat(P{Python}, extra),
- ID: id,
+ ID: id,
+ }, t.NewPackage(name, version, source, attrP, attr, slices.Concat(
+ P{Python},
+ extra,
+ build,
+ )...)
})
}