Closed clconway closed 9 years ago
I get the same errors when I run the version built with ./download_bazel.sh
(from Bazel commit https://github.com/bazelbuild/bazel/commit/14cd308832a681af9a6755cd01ca145c58a318f6)
I started a thread on bazel-discuss: https://groups.google.com/d/msgid/bazel-discuss/CAJ5fxHLz7WQ-ZzmVT4Km-mujcChn7YW%2BBXBu889NjqQU%2BqOKZQ%40mail.gmail.com.
I've confirmed that the build goes through fine if you start with a fresh checkout, then
$ ./download_bazel.sh
$ ./setup_bazel.sh
$ bazel build //...
I've also confirmed that Kythe fails in more-or-less the same way with Bazel 0.1.0.
A breadcrumb: bazel --bazelrc=/dev/null
seems to help (a little). The crux of the problem is that Bazel is trying to load tools from ~/.bazel/base_workspace instead of from the repo's bazel directory.
This branch fixes the issues with v0.1.0 by copying over needed tools and configs: https://github.com/google/shipshape/tree/fix-build-breakages It works with any recent Bazel built from source, and with the v0.1.0 binary distribution (but only with --bazelrc=/dev/null, for some reason).
I'm not sure this is the right approach, as it involves brittle config duplication and checking in binary blobs.
Synced to commit dcafb8b35 from origin/master and using the 0.1.0 release of Bazel, I get errors like:
It looks like this check was recently added to Bazel: https://github.com/bazelbuild/bazel/commit/45deb33b92aa92f46e494a7cd4379b7040468883
I tried converting the load statements thusly:
but that leads to a whole different kind of error: