Files
Colin Cross 1d4f3b8059 Fix include-what-you-use for Go modules in build/soong
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
2025-08-19 10:19:18 -07:00

20 lines
443 B
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
bootstrap_go_package {
name: "soong-systemfeatures",
pkgPath: "android/soong/systemfeatures",
deps: [
"blueprint",
"blueprint-proptools",
"soong",
"soong-android",
"soong-genrule",
"soong-java",
],
srcs: ["system_features.go"],
testSrcs: ["system_features_test.go"],
pluginFor: ["soong_build"],
}