Closed cgrushko closed 7 years ago
@lberki you mentioned something about proto maps in Bazel not working? @damienmg can you route to someone who's familiar with Bazel's bootstrapping?
Dunno... I mentioned this on the general principle that proto maps are new-ish.
Figured it out - the bootstrap script uses //thirdparty/protobuf/protoc-.exe, which is actually 3.0.0-beta4, while Bazel proper uses //thirdparty/protobuf/3.0.0/protoc-.exe, which is 3.0.0.
I assume there's been an API change between beta4 and 3.0.0.
I fixed it by pointing the bootstrap script at the /3.0.0/protoc-*.exe, and I will next delete the outdated binaries.
As a long-term solution, we should replace //third_party/protobuf/protoc-*.exe with scripts that call into the /3.0.0/ subdirectory.
@aehlig Kristina tells me it might be on your turf?
@aehlig Kristina tells me it might be on your turf?
The protoc binaries are going away anyway, so that bootstrapping will only use the pregenerated output of protoc. See the design document https://bazel.build/designs/2016/10/11/distribution-artifact.html
The patch is actually ready, https://bazel-review.googlesource.com/#/c/6731/ however blocked on our internal testing machinery which still assumes you can basically just checkout and run compile.sh; as soon as this is fixed, that patch will be submitted. @damienmg might know the more precise time line.
Klaus Aehlig Google Germany GmbH, Erika-Mann-Str. 33, 80636 Muenchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschaeftsfuehrer: Matthew Scott Sucherman, Paul Terence Manicle
I believe this is fixed now. ed787feff0a6f532ee0432fed75806553f2fd77b removed the outdated versions of protoc, including outdated jars. Also, since e72d7a07d6f6e13feee87e16d48fee9dd3857eee we build protoc from source; in fact, the binaries have been removed.
Code: https://bazel-review.googlesource.com/#/c/7312/1/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
I have a proto field of type map<>, which I want to populate in the code above.
I'm able to build Bazel with another Bazel, but can't bootstrap it:
Anyone has ideas?