Skip to content

Commit

Permalink
Create a_data.go in a reproducible way
Browse files Browse the repository at this point in the history
This patch was done while working on reproducible builds for openSUSE.
  • Loading branch information
bmwiedemann committed Nov 19, 2023
1 parent 8d41539 commit 226d975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/gen_code/gen_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 226d975

Please sign in to comment.