Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails on detecting files to watch, Error querying for source files #588

Closed
audacioustux opened this issue Feb 7, 2023 · 5 comments
Closed

Comments

@audacioustux
Copy link

audacioustux commented Feb 7, 2023

Describe the bug
A clear and concise description of what the bug is.

Reproduction instructions
A link to a repo where this can be tested

Steps to reproduce the behavior:

  1. git clone https://github.com/audacioustux/ojsol
  2. ibazel test --test_output=all Leetcode:tests
  3. Edit //Leetcode/greatest-common-divisor-of-strings_test.cpp doesn't trigger re-run
iBazel [12:02PM]: Querying for files to watch...
iBazel [12:02PM]: Bazel query failed: exit status 7
iBazel [12:02PM]: Error querying for source files: exit status 7
iBazel [12:02PM]: Bazel query failed: exit status 7
iBazel [12:02PM]: Error querying for source files: exit status 7
iBazel [12:02PM]: Testing Leetcode:tests

Screenshot 2023-02-07 at 6 02 36 PM

Expected behavior
editing source code should trigger re-run ibazel test

bazel query --output=build //path/to:target

# /workspaces/ojsol/Leetcode/BUILD.bazel:15:8
cc_test(
  name = "tests",
  generator_name = "tests",
  generator_function = "cc_test_wrapper",
  generator_location = "Leetcode/BUILD.bazel:15:8",
  size = "small",
  srcs = ["//Leetcode:1071/greatest-common-divisor-of-strings_test.cpp"],
  deps = ["//Leetcode:exercises", "@com_google_googletest//:gtest_main"],
)
# Rule tests instantiated at (most recent call last):
#   /workspaces/ojsol/Leetcode/BUILD.bazel:15:8               in <toplevel>
#   /virtual_builtins_bzl/common/cc/cc_test_wrapper.bzl:45:31 in cc_test_wrapper
# Rule cc_test defined at (most recent call last):
#   /virtual_builtins_bzl/common/cc/cc_test_no_linkstatic.bzl:19:23 in <toplevel>
#   /virtual_builtins_bzl/common/cc/cc_test.bzl:132:16              in make_cc_test

Version (please complete the following information):

  • OS: Ubuntu 22.04.1 LTS aarch64
  • ibazel Version - Development
  • Bazel version 6.0.0

Additional context

  • Error querying for source files: exit status 7
  • bazel installed with bazelisk npm install -g @bazel/bazelisk
  • bazel-watcher installed from source (master) bazel build //cmd/ibazel
@achew22
Copy link
Member

achew22 commented Feb 8, 2023

What happens if you bazel query for everything? bazel query //... does it return something?

Can you also try these two queries:

bazel query "kind('source file', deps(set(//Leetcode:tests)))"
bazel query "buildfiles(deps(set(//Leetcode:tests)))"

@audacioustux
Copy link
Author

root ➜ /workspaces/ojsol (main) $ bazel query "buildfiles(deps(set(//Leetcode:tests)))" --keep_going
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/strings': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_googlesource_code_re2//': The repository '@com_googlesource_code_re2' could not be resolved: Repository '@com_googlesource_code_re2' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_googlesource_code_re2//': The repository '@com_googlesource_code_re2' could not be resolved: Repository '@com_googlesource_code_re2' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/strings': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: Evaluation of query "deps(set(//Leetcode:tests))" failed: errors were encountered while computing transitive closure
WARNING: --keep_going specified, ignoring errors. Results may be inaccurate
//Leetcode:BUILD.bazel
@bazel_tools//src/conditions:BUILD
@bazel_tools//src/main/cpp/util:BUILD
@bazel_tools//src/main/native/windows:BUILD
@bazel_tools//src/tools/launcher:BUILD
@bazel_tools//src/tools/launcher:win_rules.bzl
@bazel_tools//src/tools/launcher/util:BUILD
@bazel_tools//third_party/def_parser:BUILD
@bazel_tools//tools/build_defs/cc:BUILD
@bazel_tools//tools/build_defs/cc:action_names.bzl
@bazel_tools//tools/build_defs/cc/whitelists/parse_headers_and_layering_check:BUILD
@bazel_tools//tools/build_defs/cc/whitelists/starlark_hdrs_check:BUILD
@bazel_tools//tools/cpp:BUILD
@bazel_tools//tools/cpp:cc_flags_supplier.bzl
@bazel_tools//tools/cpp:cc_flags_supplier_lib.bzl
@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl
@bazel_tools//tools/cpp:compiler_flag.bzl
@bazel_tools//tools/cpp:toolchain_utils.bzl
@bazel_tools//tools/def_parser:BUILD
@bazel_tools//tools/jdk:BUILD
@bazel_tools//tools/jdk:default_java_toolchain.bzl
@bazel_tools//tools/jdk:java_toolchain_alias.bzl
@bazel_tools//tools/launcher:BUILD
@bazel_tools//tools/python:BUILD
@bazel_tools//tools/python:private/defs.bzl
@bazel_tools//tools/test:BUILD
@bazel_tools//tools/windows:BUILD
@bazel_tools//tools/windows:windows_config.bzl
@com_google_googletest//:BUILD.bazel
@local_config_cc//:BUILD
@local_config_cc//:armeabi_cc_toolchain_config.bzl
@local_config_cc//:cc_toolchain_config.bzl
@platforms//os:BUILD
@remote_coverage_tools//:BUILD
@rules_cc//cc:BUILD
@rules_cc//cc:action_names.bzl
@rules_cc//cc:defs.bzl
@rules_cc//cc/private/rules_impl:BUILD
@rules_cc//cc/private/rules_impl:cc_flags_supplier.bzl
@rules_cc//cc/private/rules_impl:cc_flags_supplier_lib.bzl
@rules_cc//cc/private/rules_impl:compiler_flag.bzl
@rules_cc//cc/private/rules_impl:native.bzl
@rules_java//java:BUILD
@rules_java//java:defs.bzl
Loading: 7 packages loaded
root ➜ /workspaces/ojsol (main) $ bazel query "kind('source file', deps(set(//Leetcode:tests)))" --keep_going
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/strings': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_googlesource_code_re2//': The repository '@com_googlesource_code_re2' could not be resolved: Repository '@com_googlesource_code_re2' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_googlesource_code_re2//': The repository '@com_googlesource_code_re2' could not be resolved: Repository '@com_googlesource_code_re2' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/strings': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: Evaluation of query "deps(set(//Leetcode:tests))" failed: errors were encountered while computing transitive closure
WARNING: --keep_going specified, ignoring errors. Results may be inaccurate
//Leetcode:1071/greatest-common-divisor-of-strings.hpp
//Leetcode:1071/greatest-common-divisor-of-strings_test.cpp
@bazel_tools//src/main/cpp/util:errors.h
@bazel_tools//src/main/cpp/util:errors_posix.cc
@bazel_tools//src/main/cpp/util:errors_windows.cc
@bazel_tools//src/main/cpp/util:exit_code.h
@bazel_tools//src/main/cpp/util:file.cc
@bazel_tools//src/main/cpp/util:file.h
@bazel_tools//src/main/cpp/util:file_platform.h
@bazel_tools//src/main/cpp/util:file_posix.cc
@bazel_tools//src/main/cpp/util:file_windows.cc
@bazel_tools//src/main/cpp/util:logging.cc
@bazel_tools//src/main/cpp/util:logging.h
@bazel_tools//src/main/cpp/util:path.cc
@bazel_tools//src/main/cpp/util:path.h
@bazel_tools//src/main/cpp/util:path_platform.h
@bazel_tools//src/main/cpp/util:path_posix.cc
@bazel_tools//src/main/cpp/util:path_windows.cc
@bazel_tools//src/main/cpp/util:port.cc
@bazel_tools//src/main/cpp/util:port.h
@bazel_tools//src/main/cpp/util:strings.cc
@bazel_tools//src/main/cpp/util:strings.h
@bazel_tools//src/main/native/windows:file.cc
@bazel_tools//src/main/native/windows:file.h
@bazel_tools//src/main/native/windows:process.cc
@bazel_tools//src/main/native/windows:process.h
@bazel_tools//src/main/native/windows:util.cc
@bazel_tools//src/main/native/windows:util.h
@bazel_tools//src/tools/launcher:bash_launcher.cc
@bazel_tools//src/tools/launcher:bash_launcher.h
@bazel_tools//src/tools/launcher:dummy.cc
@bazel_tools//src/tools/launcher:java_launcher.cc
@bazel_tools//src/tools/launcher:java_launcher.h
@bazel_tools//src/tools/launcher:launcher.cc
@bazel_tools//src/tools/launcher:launcher.h
@bazel_tools//src/tools/launcher:launcher_main.cc
@bazel_tools//src/tools/launcher:python_launcher.cc
@bazel_tools//src/tools/launcher:python_launcher.h
@bazel_tools//src/tools/launcher/util:data_parser.cc
@bazel_tools//src/tools/launcher/util:data_parser.h
@bazel_tools//src/tools/launcher/util:dummy.cc
@bazel_tools//src/tools/launcher/util:launcher_util.cc
@bazel_tools//src/tools/launcher/util:launcher_util.h
@bazel_tools//third_party/def_parser:def_parser.cc
@bazel_tools//third_party/def_parser:def_parser.h
@bazel_tools//third_party/def_parser:def_parser_main.cc
@bazel_tools//tools/cpp:build_interface_so
@bazel_tools//tools/cpp:grep-includes.sh
@bazel_tools//tools/cpp:link_dynamic_library.sh
@bazel_tools//tools/def_parser:def_parser.exe
@bazel_tools//tools/def_parser:no_op.bat
@bazel_tools//tools/launcher:launcher.exe
@bazel_tools//tools/test:collect_cc_coverage.sh
@bazel_tools//tools/test:collect_coverage.sh
@bazel_tools//tools/test:dummy.sh
@bazel_tools//tools/test:generate-xml.sh
@bazel_tools//tools/test:test-setup.sh
@bazel_tools//tools/test:tw.exe
@bazel_tools//tools/test:xml.exe
@com_google_googletest//:googlemock/include/gmock/gmock-actions.h
@com_google_googletest//:googlemock/include/gmock/gmock-cardinalities.h
@com_google_googletest//:googlemock/include/gmock/gmock-function-mocker.h
@com_google_googletest//:googlemock/include/gmock/gmock-matchers.h
@com_google_googletest//:googlemock/include/gmock/gmock-more-actions.h
@com_google_googletest//:googlemock/include/gmock/gmock-more-matchers.h
@com_google_googletest//:googlemock/include/gmock/gmock-nice-strict.h
@com_google_googletest//:googlemock/include/gmock/gmock-spec-builders.h
@com_google_googletest//:googlemock/include/gmock/gmock.h
@com_google_googletest//:googlemock/include/gmock/internal/custom/gmock-generated-actions.h
@com_google_googletest//:googlemock/include/gmock/internal/custom/gmock-matchers.h
@com_google_googletest//:googlemock/include/gmock/internal/custom/gmock-port.h
@com_google_googletest//:googlemock/include/gmock/internal/gmock-internal-utils.h
@com_google_googletest//:googlemock/include/gmock/internal/gmock-port.h
@com_google_googletest//:googlemock/include/gmock/internal/gmock-pp.h
@com_google_googletest//:googlemock/src/gmock-cardinalities.cc
@com_google_googletest//:googlemock/src/gmock-internal-utils.cc
@com_google_googletest//:googlemock/src/gmock-matchers.cc
@com_google_googletest//:googlemock/src/gmock-spec-builders.cc
@com_google_googletest//:googlemock/src/gmock.cc
@com_google_googletest//:googlemock/src/gmock_main.cc
@com_google_googletest//:googletest/include/gtest/gtest-assertion-result.h
@com_google_googletest//:googletest/include/gtest/gtest-death-test.h
@com_google_googletest//:googletest/include/gtest/gtest-matchers.h
@com_google_googletest//:googletest/include/gtest/gtest-message.h
@com_google_googletest//:googletest/include/gtest/gtest-param-test.h
@com_google_googletest//:googletest/include/gtest/gtest-printers.h
@com_google_googletest//:googletest/include/gtest/gtest-spi.h
@com_google_googletest//:googletest/include/gtest/gtest-test-part.h
@com_google_googletest//:googletest/include/gtest/gtest-typed-test.h
@com_google_googletest//:googletest/include/gtest/gtest.h
@com_google_googletest//:googletest/include/gtest/gtest_pred_impl.h
@com_google_googletest//:googletest/include/gtest/gtest_prod.h
@com_google_googletest//:googletest/include/gtest/internal/custom/gtest-port.h
@com_google_googletest//:googletest/include/gtest/internal/custom/gtest-printers.h
@com_google_googletest//:googletest/include/gtest/internal/custom/gtest.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-death-test-internal.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-filepath.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-internal.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-param-util.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-port-arch.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-port.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-string.h
@com_google_googletest//:googletest/include/gtest/internal/gtest-type-util.h
@com_google_googletest//:googletest/src/gtest-assertion-result.cc
@com_google_googletest//:googletest/src/gtest-death-test.cc
@com_google_googletest//:googletest/src/gtest-filepath.cc
@com_google_googletest//:googletest/src/gtest-internal-inl.h
@com_google_googletest//:googletest/src/gtest-matchers.cc
@com_google_googletest//:googletest/src/gtest-port.cc
@com_google_googletest//:googletest/src/gtest-printers.cc
@com_google_googletest//:googletest/src/gtest-test-part.cc
@com_google_googletest//:googletest/src/gtest-typed-test.cc
@com_google_googletest//:googletest/src/gtest.cc
@local_config_cc//:builtin_include_directory_paths
@remote_coverage_tools//:all_lcov_merger_tools_deploy.jar
Loading: 0 packages loaded
root ➜ /workspaces/ojsol (main) $ bazel query //...
//Leetcode:exercises
//Leetcode:tests
Loading: 1 packages loaded

@audacioustux
Copy link
Author

audacioustux commented Feb 8, 2023

without --keep_going

root ➜ /workspaces/ojsol (main) $ bazel query "buildfiles(deps(set(//Leetcode:tests)))"                      
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/strings': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_googlesource_code_re2//': The repository '@com_googlesource_code_re2' could not be resolved: Repository '@com_googlesource_code_re2' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: Evaluation of subquery "deps(set(//Leetcode:tests))" failed (did you want to use --keep_going?): preloading transitive closure failed: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined
Loading: 0 packages loaded
root ➜ /workspaces/ojsol (main) $ bazel query "kind('source file', deps(set(//Leetcode:tests)))" 
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/flags': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/strings': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_google_absl//absl/types': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: /root/.cache/bazel/_bazel_root/b9759a02d05f24f2c74f91ee009ebdda/external/com_google_googletest/BUILD.bazel:80:11: no such package '@com_googlesource_code_re2//': The repository '@com_googlesource_code_re2' could not be resolved: Repository '@com_googlesource_code_re2' is not defined and referenced by '@com_google_googletest//:gtest'
ERROR: Evaluation of subquery "deps(set(//Leetcode:tests))" failed (did you want to use --keep_going?): preloading transitive closure failed: no such package '@com_google_absl//absl/debugging': The repository '@com_google_absl' could not be resolved: Repository '@com_google_absl' is not defined
Loading: 0 packages loaded

@audacioustux
Copy link
Author

google/googletest#3824

@audacioustux
Copy link
Author

solved with r2 dependency... thanks for the pointer! @achew22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants