Commit 0ad46fd
authored
Deterministic result order in
This patch addresses the issue of non-deterministic result order in the
`GetImmutableFieldPath` function.
In Go, maps and hashmaps access their elements randomly, which resulted
in non-deterministic return arrays from `GetImmutableFieldPaths`. This
patch leverages `sort.Strings` to ensure deterministic result order,
ensuring deterministic behaviour in generated code.
Signed-off-by: Amine Hilaly <hilalyamine@gmail.com>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.GetImmutableFieldPaths (#405)1 parent d13b586 commit 0ad46fd
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
0 commit comments