bazelbuild / buildtools

A bazel BUILD file formatter and editor
Apache License 2.0
1.01k stars 415 forks source link

*.jdeps: no such file or directory, No unused deps found. #1134

Open USB-05 opened 1 year ago

USB-05 commented 1 year ago

Bazel Version: 6.0.0

unused_deps: go install github.com/bazelbuild/buildtools/unused_deps@latest

OS: macOS Monterey Version 12.5.1

Expected Behaviour: To report unused_deps in the modules.

Actual Behaviour: teps/test_duplicated_library.jdeps: no such file or directory 2023/01/31 19:03:21 test_duplicated_library not found in /Users/udhamsingh/Documents/harness-github/harness-core/125-cd-nextgen/modules/gitops/core/src/main/java/io/harness/cdng/gitops/steps/BUILD.bazel 2023/01/31 19:03:21 open /private/var/tmp/_bazel_udhamsingh/dc16e0ae3780655f2259c44c62c986e7/execroot/harness_monorepo/bazel-out/darwin-fastbuild/bin/125-cd-nextgen/src/main/resources/resources.jdeps: no such file or directory 2023/01/31 19:03:21 resources not found in /Users/udhamsingh/Documents/harness-github/harness-core/125-cd-nextgen/src/main/resources/BUILD.bazel 2023/01/31 19:03:21 open /private/var/tmp/_bazel_udhamsingh/dc16e0ae3780655f2259c44c62c986e7/execroot/harness_monorepo/bazel-out/darwin-fastbuild/bin/125-cd-nextgen/src/test/resources/resources.jdeps: no such file or directory 2023/01/31 19:03:21 resources not found in /Users/udhamsingh/Documents/harness-github/harness-core/125-cd-nextgen/src/test/resources/BUILD.bazel No unused deps found.

brown commented 1 year ago

In order to debug this problem, more information is needed. If you can, please provide a small example that reproduces the problem.