google / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
2.32k stars 330 forks source link

Build error: third_party/wil should be referenced as @com_microsoft_wil//:wil #859

Closed wengxt closed 6 months ago

wengxt commented 6 months ago

Description

Current way of writing it doesn't break linux build, but breaks some bazel related, e.g. bazel fetch/ bazel query command.

For example,

$ bazel query 'deps(//base:mmap)' ERROR: Evaluation of query "deps(//base:mmap)" failed: preloading transitive closure failed: no such package 'third_party/wil': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.

Commit-id

b96c8d55a0ed188f3c08ef0d3615efbe8a3eb5dd

Build target

N/A I believe, but I ran the command under Linux

CI build status

passing

Environment

Build commands

Steps of command lines to reproduce your error. bazel query 'deps(//base:mmap)'

Error logs

ERROR: Evaluation of query "deps(//base:mmap)" failed: preloading transitive closure failed: no such package 'third_party/wil': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.

Additional context

If I manually replace all third_party/wil in deps as @com_microsoft_wil//:wil, error will be resolved.

hiroyuki-komatsu commented 6 months ago

Hi wengxt,

Thank you for your report. We were able to reproduce the error.

We will fix this issue.

hiroyuki-komatsu commented 6 months ago

76843e0 fixed the error. Thank you,