diff options
author | 2025-02-19 12:49:37 -0800 | |
---|---|---|
committer | 2025-02-19 12:49:37 -0800 | |
commit | 5db2f3ea7ec4a41f60d6e94870c99239e4035506 (patch) | |
tree | 6531bd99df9ad459a61aaf7858915c847eecce32 /filesystem/filesystem.go | |
parent | 367dac6d541202f3d090e09cf41e5a3fdba4849e (diff) |
Fix nondeterministic FullInstallPathInfo list
This list later shows up in the ninja file in soong-only builds, make
sure it's deterministic.
Test: Presubmits
Change-Id: Id121b8b95a543cd019f7c51f4121aa2c761f8a9f
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index f84993de7..220a8c6a4 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -587,7 +587,8 @@ func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) { specs := f.gatherFilteredPackagingSpecs(ctx) var fullInstallPaths []FullInstallPathInfo - for _, spec := range specs { + for _, specRel := range android.SortedKeys(specs) { + spec := specs[specRel] fullInstallPaths = append(fullInstallPaths, FullInstallPathInfo{ FullInstallPath: spec.FullInstallPath(), RequiresFullInstall: spec.RequiresFullInstall(), |