Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: adopt bzlmod #3116

Merged
merged 17 commits into from
May 23, 2024
Merged

bazel: adopt bzlmod #3116

merged 17 commits into from
May 23, 2024

Conversation

malt3
Copy link
Contributor

@malt3 malt3 commented May 22, 2024

Context

Bzlmod is the new dependency management system of Bazel. It works in a similar way as go mod.

Proposed change(s)

  • migrate most external Bazel dependencies to bzlmod

Additional info

Checklist

  • Run the E2E tests that are relevant to this PR's changes
  • Update docs
  • Add labels (e.g., for changelog category)
  • Is PR title adequate for changelog?
  • Link to Milestone

@malt3 malt3 added the no changelog Change won't be listed in release changelog label May 22, 2024
@malt3 malt3 added this to the v2.17.0 milestone May 22, 2024

This comment was marked as off-topic.

Copy link
Member

@daniel-weisse daniel-weisse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice
Will this require any changes to our renovate.json?

disk-mapper/recoverproto/recover.pb.go Show resolved Hide resolved
@malt3
Copy link
Contributor Author

malt3 commented May 22, 2024

nice Will this require any changes to our renovate.json?

As far as I can tell, renovate already natively supports bzlmod.

Although I need to (and will) test if the bazel-module manager works as intended once this hits the main branch.

@malt3 malt3 force-pushed the bazel/adopt-bzlmod branch 2 times, most recently from 52e8722 to ecbfd6e Compare May 22, 2024 09:42
@malt3 malt3 marked this pull request as ready for review May 22, 2024 10:44
@malt3 malt3 requested a review from burgerdev May 22, 2024 10:49
.bazelrc Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
The mkosi_image rule uses a lot of memory.
In order to allow higher levels of concurrency,
such as `bazel build --jobs 128`, we need to more accurately model the
amount of CPU and memory required.
@malt3 malt3 force-pushed the bazel/adopt-bzlmod branch 4 times, most recently from e0412fb to 5f79bc7 Compare May 22, 2024 13:51
malt3 added 2 commits May 22, 2024 16:12
While it does have some quirks before Bazel 7.2, it is still vital for security.