Skip to content

Commit

Permalink
Merge pull request #490 from bmwiedemann/sort
Browse files Browse the repository at this point in the history
Create a_data.go in a reproducible way
  • Loading branch information
candid82 committed Nov 21, 2023
2 parents 8d41539 + 226d975 commit 1731e16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/gen_code/gen_code.go
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 1731e16

Please sign in to comment.