4 ms·
Maybe one day the buck2 ecosystem will evolve to be that bazel replacement. It has a much smaller core. Right now it’s lacking in ecosystem support, tooling, ex
by vvern 2y ago
Maybe one day the buck2 ecosystem will evolve to be that bazel replacement. It has a much smaller core. Right now it’s lacking in ecosystem support, tooling, examples, and a local build sandboxing (which could be fine if there was an easy to use local implementation of remote build that felt natural). Also no go support is sort of painful, and it’s a bunch of work as i understand it to get something like rules_go to work for buck2.
- bbkane 2y agoIt looks like Go is starting to get better support in buck2 - see https://github.com/facebook/buck2/issues/455 https://github.com/facebook/buck2/issues/455
- zokier 2y agoBuck2 is really enticing. If I had too much time on my hands, I'd love to try to make a full bootable Linux distro as monorepo and built with buck2. I do see some sort of convergence between package managers and build tools, nix and buck2 do seem to approach similar problem from different angles.
- ReleaseCandidat 2y ago> examples As it may be that people don't find them, the official ones are in `examples` https://github.com/facebook/buck2/tree/main/examples https://github.com/facebook/buck2/tree/main/examples language examples in `examples/with_prelude` https://github.com/facebook/buck2/tree/main/examples/with_prelude https://github.com/facebook/buck2/tree/main/examples/with_pr... There is a minmal Go example too: https://github.com/facebook/buck2/tree/main/examples/with_prelude/go/hello https://github.com/facebook/buck2/tree/main/examples/with_pr... More "real world" examples are dtolnay's CXX for Rust and C++ interop: https://github.com/dtolnay/cxx https://github.com/dtolnay/cxx and my own ones (sorry to link these again, but I do not know of any others): C++ with Vcpkg: https://github.com/Release-Candidate/Cxx-Buck2-vcpkg-Examples https://github.com/Release-Candidate/Cxx-Buck2-vcpkg-Example... C++ with Conan: https://github.com/Release-Candidate/Cxx-Buck2-Conan-Examples https://github.com/Release-Candidate/Cxx-Buck2-Conan-Example... OCaml: https://github.com/Release-Candidate/OCaml-Buck-2-Examples https://github.com/Release-Candidate/OCaml-Buck-2-Examples
- ReleaseCandidat 2y agoAnd a remark: the "real" problem when using Buck 2 is the interface to the LSP, as most LSPs only work with the "native" project configuration. For C++ generating a `compile_commands.json` is quite easy (see my C++ examples in the other post), not the least because there is no single standard for a project's configuration.