Skip to content

Improve Bazel support: Switch to Bzlmod #4584

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

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Improve Bazel support: Switch to Bzlmod #4584

merged 4 commits into from
Jan 7, 2025

Conversation

Vertexwahn
Copy link
Contributor

@Vertexwahn Vertexwahn commented Jan 6, 2025

This PR only affects the Bazel build. Switched from traditional WORKSPACE approach to Bzlmod.

Background: Due to the shortcomings of WORKSPACE, Bzlmod is going to replace the legacy WORKSPACE system. The WORKSPACE file will be disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025). Therefore, this PR.

Signed-off-by: Vertexwahn <julian.amann@tum.de>
@coveralls
Copy link

coveralls commented Jan 6, 2025

Coverage Status

coverage: 99.639%. remained the same
when pulling d324192 on Vertexwahn:bazel-support
into 60c4875 on nlohmann:develop.

Signed-off-by: Vertexwahn <julian.amann@tum.de>
Signed-off-by: Vertexwahn <julian.amann@tum.de>
Signed-off-by: Vertexwahn <julian.amann@tum.de>
@nlohmann
Copy link
Owner

nlohmann commented Jan 7, 2025

One question: In #4560, I added an overview for the package managers like this:

image

Most packages have a single string ("package", "formula", "port") to quickly communicate what to do for "their" package manager. Is there something like this for Bazel?

@Vertexwahn
Copy link
Contributor Author

Yes three is "nlohmann_json" in the Bazel Central Registry https://registry.bazel.build/modules/nlohmann_json -> so add nlohmann_json

@nlohmann nlohmann added this to the Release 3.11.4 milestone Jan 7, 2025
Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nlohmann nlohmann merged commit 0cb1241 into nlohmann:develop Jan 7, 2025
124 checks passed
@nlohmann
Copy link
Owner

nlohmann commented Jan 7, 2025

Thanks!

nlohmann added a commit that referenced this pull request Jan 7, 2025
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
codenut pushed a commit to codenut/json that referenced this pull request Jan 9, 2025
* Improve Bazel support: Switch to Bzlmod

Signed-off-by: Vertexwahn <julian.amann@tum.de>

* Update documentation

Signed-off-by: Vertexwahn <julian.amann@tum.de>

* Fix spelling

Signed-off-by: Vertexwahn <julian.amann@tum.de>

* Fix snippet filename error

Signed-off-by: Vertexwahn <julian.amann@tum.de>

---------

Signed-off-by: Vertexwahn <julian.amann@tum.de>
slowriot pushed a commit to slowriot/json that referenced this pull request Jan 10, 2025
* Improve Bazel support: Switch to Bzlmod

Signed-off-by: Vertexwahn <julian.amann@tum.de>

* Update documentation

Signed-off-by: Vertexwahn <julian.amann@tum.de>

* Fix spelling

Signed-off-by: Vertexwahn <julian.amann@tum.de>

* Fix snippet filename error

Signed-off-by: Vertexwahn <julian.amann@tum.de>

---------

Signed-off-by: Vertexwahn <julian.amann@tum.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants