diff --git a/sourcebundle/builder.go b/sourcebundle/builder.go index 575db07..4d949e3 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, "", " ")