From 4f9b71055d1cc37e9326e0ed8ec63608be0108f7 Mon Sep 17 00:00:00 2001 From: Liam Cervante Date: Wed, 30 Oct 2024 09:51:47 +0100 Subject: [PATCH] sourcebundle: check correct slice when sorting registry meta --- sourcebundle/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcebundle/builder.go b/sourcebundle/builder.go index 9419cc8..d2ec9aa 100644 --- a/sourcebundle/builder.go +++ b/sourcebundle/builder.go @@ -622,7 +622,7 @@ func (b *Builder) writeManifest(filename string) error { } sort.Slice(root.RegistryMeta, func(i, j int) bool { - return root.Packages[i].SourceAddr < root.Packages[j].SourceAddr + return root.RegistryMeta[i].SourceAddr < root.RegistryMeta[j].SourceAddr }) buf, err := json.MarshalIndent(&root, "", " ")