From 226d975b76e7d480e439ff25c8fd5fd0aa11ba40 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sun, 19 Nov 2023 13:29:04 +0100 Subject: [PATCH] Create a_data.go in a reproducible way This patch was done while working on reproducible builds for openSUSE. --- core/gen_code/gen_code.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/gen_code/gen_code.go b/core/gen_code/gen_code.go index 3d166778..b40faa2a 100644 --- a/core/gen_code/gen_code.go +++ b/core/gen_code/gen_code.go @@ -258,6 +258,7 @@ func init() { "%s",`[1:], ns)) } + sort.Strings(coreNamespaces) dataContent := strings.Replace(dataTemplate, "{coreNamespaces}", strings.Join(coreNamespaces, "\n"), 1) ioutil.WriteFile("a_data.go", []byte(dataContent), 0666) }