当我使用bazel构建一个简单的玩具项目时,我收到以下错误:
$ bazel build :example-test
ERROR: /home/ubuntu/foo/scala_bazel_test/src/scala/test/src/com/foo/util/BUILD:1:1: no such package '@org_scalatest//jar': Failed to fetch Maven dependency: Could not find artifact org.scalatest:scalatest_2_11:jar:3.0.1 in org_scalat
我对Bazel和Gtest非常陌生,并且一直试图在名为"species_test".cpp的cpp文件上运行这些测试。这是我一直遇到的主要错误:
Wills-iMac:species Will$ bazel test species_test --test_output=all
ERROR: Skipping 'species_test': no such target '//species:species_test': target 'species_test' not declared in package 'spe
我尝试用Bazel编译一个Scala库。这会导致一个错误:
error: Symbol 'type <none>.slf4j.Logger' is missing from the classpath.
This symbol is required by 'value com.typesafe.scalalogging.slf4j.Logger.underlying'.
Make sure that type Logger is in your classpath and check for conflicting dependencies wit
怎么回事:我解决不了警告
fjw@MacBook-Pro googletest % [master] bazel info
WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE.
WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE.
bazel-bin: /private/var/tmp/_bazel_fjw/a826f32507803e99352fd6b3b40ddfa3/execroot/com_google_go
我在文件名中有依赖于“:”文件的Python测试。
我想将测试放在bazel下,但是当我将数据参数中的文件提供给py_test时,bazel变得不开心,抱怨说:
invalid target name 'bazel_test_cases/foo/input/foo:bar': target names may not contain ':'
这附近有工作吗?
因此,我尝试在中复制biograkn的文本挖掘用例。我正在尝试迁移模式中的数据,我应该为它做bazel构建。因此,我运行了以下命令:
bazel build //migrator:migrator-bin
在biograkn的textmining文件夹中。现在,构建失败了,我得到了错误:
这是回溯
DEBUG: Rule 'io_bazel_rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "
问题
我有一个带有java_library的包,该包配置了javaopts = ["-Werror"]。建筑成功,使用3.6.0。升级到4.0.0之后,我得到
warning: [path] bad path element "some/path/some.jar" : no such file or directory
更多的检查显示,这些jars是在通过maven_install获取的一些依赖项中的META/MANIFEST.MF类路径中声明的。而且,很明显,在警告消息中的引用目录中找不到它们。我尝试在构建文件中向javacopts添加"-Xlint