Soong was incorrectly passing -I arguments to `go compile` for all transitive dependency packages, allowing `import` statements to reference packages that were not listed as dependencies of the module in the Android.bp file. This bypassed Soong's visiblity restrictiions. Add direct dependencies on any packages referenced by `import` statements. Bug: 439627342 Test: builds with transitive dependencies removed from -I flags to go compile Change-Id: Iccb523f454e8db24ea00f94bc9031b97cbadf04e
25 lines
454 B
Plaintext
25 lines
454 B
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-xml",
|
|
pkgPath: "android/soong/xml",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-pathtools",
|
|
"blueprint-proptools",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-etc",
|
|
],
|
|
srcs: [
|
|
"testing.go",
|
|
"xml.go",
|
|
],
|
|
testSrcs: [
|
|
"xml_test.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|