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

Added bzlmod support to all extension rules. #3037

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Dec 3, 2024

Additional Changes:

  • The rules rules_nodejs for rules_rust_wasm_bindgen will no longer tested and will be dropped unless bzlmod support is added for the original bazel_build_rules_nodejs rules.
  • rules_rust_bindgen updated default clang version to 17.0.3 to match bzlmod available version.
  • rules_rust_prost updated protobuf version to v28.3

Relates to:

@UebelAndre UebelAndre force-pushed the bzlmod-ext branch 10 times, most recently from 3db9532 to 4e77e69 Compare December 3, 2024 23:12
- "//..."
# TODO: https://github.com/bazelbuild/rules_rust/issues/3039
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@UebelAndre UebelAndre marked this pull request as ready for review December 4, 2024 21:39
@UebelAndre UebelAndre enabled auto-merge December 4, 2024 21:40
@UebelAndre UebelAndre added this pull request to the merge queue Dec 4, 2024
Merged via the queue into bazelbuild:main with commit a7aba2d Dec 4, 2024
4 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Dec 5, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 7, 2024
@@ -1,6 +1,7 @@
"""Definitions for loading transitive `@rules_rust//proto` dependencies"""

load("@bazel_features//:deps.bzl", "bazel_features_deps")
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
Copy link
Contributor

Choose a reason for hiding this comment

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

why does prost require all these protobuf dependencies now? I thought the point of it was that it doesn't?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added this because when I updated protobuf I started getting tons of load errors for random external repositories. If there’s a way to avoid this I’m happy to reduce the amount of forced dependencies!

Copy link
Contributor

Choose a reason for hiding this comment

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

I have no idea sorry. :( I wonder how it worked before though?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

At a glance it seems like protobuf just started adding more dependencies expecting bzlmod to hide that from users 😞

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So updating and pulling in all those changes that introduced new forced dependencies introduced the need for these extra dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants