Loading android/bazel_handler.go +1 −1 Original line number Diff line number Diff line Loading @@ -694,7 +694,7 @@ func (context *bazelContext) InvokeBazel() error { cqueryOutput, cqueryErr, err = context.issueBazelCommand( context.paths, bazel.CqueryBuildRootRunName, bazelCommand{"cquery", fmt.Sprintf("deps(%s)", buildrootLabel)}, bazelCommand{"cquery", fmt.Sprintf("deps(%s, 2)", buildrootLabel)}, "--output=starlark", "--starlark:file="+absolutePath(cqueryFileRelpath)) err = ioutil.WriteFile(filepath.Join(soongInjectionPath, "cquery.out"), Loading android/bazel_handler_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ func TestRequestResultsAfterInvokeBazel(t *testing.T) { label := "//foo:bar" arch := Arm64 bazelContext, _ := testBazelContext(t, map[bazelCommand]string{ bazelCommand{command: "cquery", expression: "deps(@soong_injection//mixed_builds:buildroot)"}: `//foo:bar|arm64>>out/foo/bar.txt`, bazelCommand{command: "cquery", expression: "deps(@soong_injection//mixed_builds:buildroot, 2)"}: `//foo:bar|arm64>>out/foo/bar.txt`, }) g, ok := bazelContext.GetOutputFiles(label, arch) if ok { Loading Loading
android/bazel_handler.go +1 −1 Original line number Diff line number Diff line Loading @@ -694,7 +694,7 @@ func (context *bazelContext) InvokeBazel() error { cqueryOutput, cqueryErr, err = context.issueBazelCommand( context.paths, bazel.CqueryBuildRootRunName, bazelCommand{"cquery", fmt.Sprintf("deps(%s)", buildrootLabel)}, bazelCommand{"cquery", fmt.Sprintf("deps(%s, 2)", buildrootLabel)}, "--output=starlark", "--starlark:file="+absolutePath(cqueryFileRelpath)) err = ioutil.WriteFile(filepath.Join(soongInjectionPath, "cquery.out"), Loading
android/bazel_handler_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ func TestRequestResultsAfterInvokeBazel(t *testing.T) { label := "//foo:bar" arch := Arm64 bazelContext, _ := testBazelContext(t, map[bazelCommand]string{ bazelCommand{command: "cquery", expression: "deps(@soong_injection//mixed_builds:buildroot)"}: `//foo:bar|arm64>>out/foo/bar.txt`, bazelCommand{command: "cquery", expression: "deps(@soong_injection//mixed_builds:buildroot, 2)"}: `//foo:bar|arm64>>out/foo/bar.txt`, }) g, ok := bazelContext.GetOutputFiles(label, arch) if ok { Loading