Move tradefed_binary.go into subdir
Having two packages in the same directory makes it harder for go tools to understande the directory structure. For example, in build/soong, "go test ./cc/..." fails with cyclic package imports. Bug: n/a Test: go test ./cc/... (in build/soong) Change-Id: I7a040bf30b1e001680dd43fed9747e9651372274
This commit is contained in:
@@ -15,7 +15,7 @@ bootstrap_go_package {
|
|||||||
|
|
||||||
bootstrap_go_package {
|
bootstrap_go_package {
|
||||||
name: "soong-suite-harness",
|
name: "soong-suite-harness",
|
||||||
pkgPath: "android/soong/suite_harness",
|
pkgPath: "android/soong/tradefed/suite_harness",
|
||||||
deps: [
|
deps: [
|
||||||
"blueprint",
|
"blueprint",
|
||||||
"blueprint-pathtools",
|
"blueprint-pathtools",
|
||||||
@@ -25,7 +25,7 @@ bootstrap_go_package {
|
|||||||
"soong-java",
|
"soong-java",
|
||||||
],
|
],
|
||||||
srcs: [
|
srcs: [
|
||||||
"tradefed_binary.go",
|
"suite_harness/tradefed_binary.go",
|
||||||
],
|
],
|
||||||
pluginFor: ["soong_build"],
|
pluginFor: ["soong_build"],
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
"android/soong/java"
|
"android/soong/java"
|
||||||
)
|
)
|
||||||
|
|
||||||
var pctx = android.NewPackageContext("android/soong/suite_harness")
|
var pctx = android.NewPackageContext("android/soong/tradefed/suite_harness")
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
android.RegisterModuleType("tradefed_binary_host", tradefedBinaryFactory)
|
android.RegisterModuleType("tradefed_binary_host", tradefedBinaryFactory)
|
Reference in New Issue
Block a user