Re:Bazel can now build Haskell
by Sir_Cmpwn on Wednesday February 28, 2018 @10:10AM
(#16483454)
I don't think Bazel is the right tool for that niche. I don't think Bazel shines in any context other than a monorepo.
[ Parent
| on HN ]
I cannot agree with you more. The last time I look for build a bazel project with external dependency it was messy and undocumented. It was to use Tensorflow and Opencv in a standalone C++ code, tensorflow use bazel by default.
By external dependencies, do you mean things like arbitrary Git repos? There are standard rules there to accommodate things like that.
As well, this may be new documentation since you last looked, but there's https://docs.bazel.build/versions/master/external.html to read now, at least.
Presumably they mean non-Bazel external projects, which that link doesn't even touch on ("The other repository uses make... just rewrite their build system!") - an external project with the same build system is the "easy" case for things like this and CMake; any new contender has to accept that there is a wide ecosystem of other solutions it's going to have to interoperate with.
...unless you are in a corporate environment with a build team to integrate complicated external projects into a monorepo and where things like build system can be mandated.
That's always the feeling I've gotten from Bazel - you either do things the "google" way, or find something else.