diff options
author | 2024-02-05 22:06:54 +0000 | |
---|---|---|
committer | 2024-02-05 22:11:28 +0000 | |
commit | 2268cd8b8b59894e8048ae55eba61aa851b0550f (patch) | |
tree | 6346d4ee5742f438244128b332f4a02b06cf218c /java/system_modules_test.go | |
parent | bb0d5866c56a7d9393fd48f99ef2edf063f0c218 (diff) |
Fix non-determinism in all_teams.pb
this.teams_for_mods uses a dictionary and `range` yields a
non-deterministic ordering. This would cause all_teams.pb to be
non-determinisitic. Since this file is created during Soong analysis, it
would cause the .ninja file to also be non-deterministic.
Use SortedKeys to do the iteration instead.
Test: go build ./android
Test: m nothing a couple of times and checked that the .ninja files are
identical
Change-Id: Ife2d2520d118ef25639f86390912d98b5f057655
Diffstat (limited to 'java/system_modules_test.go')
0 files changed, 0 insertions, 0 deletions