This WIP repo is a demo of how bzlmod works.
bzlmod works in Bazel >5.0, which there is not official release for yet. bzlmod is still in development, but we can use a pre-release of Bazel v5.0 to start using it.
- Download bazelisk (
brew install bazelisk) - Run
bazel --versionto verify you are using the Bazel version specified in the .bazeliskrc file - Run
bazel build src:hello-worldto build a simple C++ project the depends onzlibfetched by bzlmod
I have a problem locally where I have to run unset JAVA_HOME before this demo works. I haven't dedicated enough time to finish figuring out what my problem is.