Hi all,
I'm trying to update the version of Bazel for a project that uses Bazel's java protobuf libraries. In version 0.2.2b, we depended on a target @bazel_tools//src/main/protobuf:worker_protobuf_java_proto, but I get the following error when building this project on version 0.3.0:
error loading package '@bazel_tools//src/main/protobuf': Extension file not found. Unable to load package for '@bazel_tools//third_party/protobuf:protobuf.bzl': BUILD file not found on package path and referenced by '//bazel/rules/scala/scala:scala-worker-lib'.
Build label: 0.3.0
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jun 10 11:38:23 2016 (1465558703)
Build timestamp: 1465558703
Build timestamp as int: 1465558703
Minimal reproductive case which I think demonstrates the problem:
mkdir test
cd test
touch WORKSPACE
bazel query 'kind(rule, @bazel_tools//src/main/protobuf:all)'
results in:
ERROR: while parsing '@bazel_tools//src/main/protobuf:all': error loading package '@bazel_tools//src/main/protobuf': Extension file not found. Unable to load package for '@bazel_tools//third_party/protobuf:protobuf.bzl': BUILD file not found on package path.
Appreciate the guidance in advance!
Miles