by ajconway · 4y ago · 0 comments
> what real extra benefit Bazel brings in here
Builds are hermetic by default, so unless the developer chooses to escape the sandbox, everything is guaranteed to build on other machines with no additional setup.
(Also, I genuinely hate when I have to manually install build dependencies system-wide and pray that there will not be any conflicts. Having everything pinned to specific sha256 or git hashes by design is a breath of fresh air)
The parenthesized comment is funnier to me because I had to download a specific bazel version to build.
I'd expect Tensorflow to have some non-hermetic build actions, but if choosing a specific Bazel version was the only thing that was required to build it, that's awesome!
If you use bazelisk to provide your `bazel` command, it'll download the appropriate Bazel version for the repo you're trying to build.