aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorSimran Basi <sbasi@google.com>2018-09-06 12:23:28 -0700
committerSimran Basi <sbasi@google.com>2018-09-06 15:55:52 -0700
commitdf98cd7aa4ee9d211a8f939509615ac5de39293f (patch)
treec5bd788bbdc6ec708c8d78fc05c409ecb35fd80b /ui
parentca126c70d73a8271b35e6e7c0688504b491710df (diff)
downloadbuild_soong-df98cd7aa4ee9d211a8f939509615ac5de39293f.tar.gz
build_soong-df98cd7aa4ee9d211a8f939509615ac5de39293f.tar.bz2
build_soong-df98cd7aa4ee9d211a8f939509615ac5de39293f.zip
Add OWNERS to finder's cache
Build target owners will create a zip of all OWNERS files in source code based on the cached OWNERS.list Bug: 114242886 Test: make dist -j owners Change-Id: I97fa3737e1a2a240a08e072dfb2905c11f28705b
Diffstat (limited to 'ui')
-rw-r--r--ui/build/finder.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/build/finder.go b/ui/build/finder.go
index 6dc35a0b..3130f74c 100644
--- a/ui/build/finder.go
+++ b/ui/build/finder.go
@@ -62,6 +62,7 @@ func NewSourceFinder(ctx Context, config Config) (f *finder.Finder) {
"Android.bp",
"Blueprints",
"CleanSpec.mk",
+ "OWNERS",
"TEST_MAPPING",
},
}
@@ -102,10 +103,16 @@ func FindSources(ctx Context, config Config, f *finder.Finder) {
ctx.Fatalf("Could not export module list: %v", err)
}
+ owners := f.FindNamedAt(".", "OWNERS")
+ err = dumpListToFile(owners, filepath.Join(dumpDir, "OWNERS.list"))
+ if err != nil {
+ ctx.Fatalf("Could not find OWNERS: %v", err)
+ }
+
testMappings := f.FindNamedAt(".", "TEST_MAPPING")
err = dumpListToFile(testMappings, filepath.Join(dumpDir, "TEST_MAPPING.list"))
if err != nil {
- ctx.Fatalf("Could not find modules: %v", err)
+ ctx.Fatalf("Could not find TEST_MAPPING: %v", err)
}
androidBps := f.FindNamedAt(".", "Android.bp")