Use maps in bazel *attribute types
This is to simplify the process of resolving label + exclude labels across the various configuration axes we have and across the various properties/modules that use this behavior. Test: ci/bp2build.sh && ci/mixed_droid.sh Change-Id: I8efae3e75ddb365384f5caaf5bb504a5206618d3
This commit is contained in:
@@ -1109,8 +1109,8 @@ genrule {
|
||||
"out",
|
||||
],
|
||||
srcs = [
|
||||
"in1",
|
||||
"srcs-from-3",
|
||||
"in1",
|
||||
],
|
||||
)`,
|
||||
description: "genrule applies properties from genrule_defaults transitively",
|
||||
@@ -1535,10 +1535,10 @@ func TestGlobExcludeSrcs(t *testing.T) {
|
||||
expectedBazelTargets: []string{`filegroup(
|
||||
name = "fg_foo",
|
||||
srcs = [
|
||||
"//dir:e.txt",
|
||||
"//dir:f.txt",
|
||||
"a.txt",
|
||||
"b.txt",
|
||||
"//dir:e.txt",
|
||||
"//dir:f.txt",
|
||||
],
|
||||
)`,
|
||||
},
|
||||
@@ -1575,9 +1575,9 @@ func TestGlobExcludeSrcs(t *testing.T) {
|
||||
expectedBazelTargets: []string{`filegroup(
|
||||
name = "fg_foo",
|
||||
srcs = [
|
||||
"a.txt",
|
||||
"//dir/subdir:e.txt",
|
||||
"//dir/subdir:f.txt",
|
||||
"a.txt",
|
||||
],
|
||||
)`,
|
||||
},
|
||||
|
Reference in New Issue
Block a user