bazeldnf icon indicating copy to clipboard operation
bazeldnf copied to clipboard

Adopt bzlmod to build the repository

Open manuelnaranjo opened this issue 7 months ago • 2 comments

Introducing bzlmod support to the repo. For bzlmod we don't support Bazel < 6.

We expose a basic extension so others can start using bazeldnf. We provide a legacy mode that has a lot of RPM information on MODULE.bazel and exposes 1 bazel repository per RPM, then there's another non legacy mode where we provide a proxy repository to reduce some complexity out of MODULE.bazel and finally there's a mode with a json lock file to move all the RPM tracking into a non starlark file. We don't provide yet a way to generate such lock file. All this modes get an e2e test.

On top of this we also allow to use a prebuilt and non prebuilt bazeldnf binary. When building the binary if we're in bazel 7+ then we use a prebuilt protoc which speeds up the build considerably.

Here's a sample of the release CI artifacts pipeline

This builds on top of https://github.com/rmohr/bazeldnf/pull/76

manuelnaranjo avatar Jul 16 '24 14:07 manuelnaranjo