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

chore(bazel): add MODULE.bazel files for bzlmod #144

Merged
merged 1 commit into from Feb 26, 2024

Conversation

mmorel-35
Copy link
Contributor

Signed-off-by: Matthieu MOREL matthieu.morel35@gmail.com

.bazeliskrc Outdated Show resolved Hide resolved
.bazelrc Outdated Show resolved Hide resolved
)

bazel_dep(name = "rules_proto", version = "6.0.0-rc2")
bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf")
Copy link
Member

Choose a reason for hiding this comment

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

Can we not use 24.4 as used in WORKSPACE today?

Copy link
Contributor Author

@mmorel-35 mmorel-35 Feb 26, 2024

Choose a reason for hiding this comment

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

I'm afraid, it's not available on BCR yet

Copy link
Member

Choose a reason for hiding this comment

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

23.1 was released May 2023. 23.2 was released the same month. 24.0 was released Aug 2023. And 25.0 was released Nov 2023. Looks like 23.1 was added to BCR at the very, very end of 2023.

Either BCR needs updating or we define the module locally (however that should be done). I can accept the skew, but we need to be able to choose something recent, so having this problem out-of-the-gate makes me think we need to go through that process now so we know how it is done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'v tried importing it but then it requires a lot more bazel_deps which is quite bothering.
I believe BCR needs to be updated but I don't understand why it is not more for such a crucial dependency.

Copy link
Member

Choose a reason for hiding this comment

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

Okay. Well, this PR is still a step in the right direction. We can use the older version for now.

bazel/switched_rules_extension.bzl Outdated Show resolved Hide resolved
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

I'd still like .bazeliskrc to be removed, as I think it could surprise someone and is unlikely to help us. But overall, this is fine as is. Any tweaks can be followup.

bazel/switched_rules_extension.bzl Outdated Show resolved Hide resolved
@ejona86
Copy link
Member

ejona86 commented Feb 26, 2024

I've remove the branch protection that required the test GHA test complete, so that we can make the change here.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@ejona86
Copy link
Member

ejona86 commented Feb 26, 2024

No need for both @veblush and @gnossen to review. First one wins.

@veblush
Copy link
Contributor

veblush commented Feb 26, 2024

Thanks for the PR. Are you going to register this to BCR?

@mmorel-35
Copy link
Contributor Author

Are you going to register this to BCR?

I don't know how to do this

@ejona86 ejona86 merged commit 3816d1f into grpc:master Feb 26, 2024
5 checks passed
@ejona86
Copy link
Member

ejona86 commented Feb 26, 2024

@mmorel-35, thank you!

@mmorel-35 mmorel-35 deleted the bzlmod branch February 26, 2024 23:41
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.

None yet

3 participants