Skip to content

Conversation

@mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Aug 17, 2025

Description

This PR updates Bazel build configuration to use bzlmod, following https://bazel.build/external/migration . The main changes include upgrading grpc, protobuf, and rules_proto, updating repository loading logic to avoid redundant downloads, and adjusting build files to use the updated dependency structure.

@wu-sheng
Copy link
Member

@wbpcode This should be mostly around C++ SDK build. PTAL.

Copy link
Contributor

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

LGTM overall. I am glad to see the migration to bzlmod, thanks for the contribution. Only one comment to the version.

MODULE.bazel Outdated
@@ -0,0 +1,9 @@
module(
name = "skywalking-data-collect-protocol",
version = "0.0.0-dev",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the version reasonable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the usual when not yet defined.
I changed it to 10.2.1-dev

After the module is integrated, it needs a workflow to publish to bcr : https://github.com/bazel-contrib/publish-to-bcr

…ibility

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35
Copy link
Contributor Author

mmorel-35 commented Sep 13, 2025

Notice, I applied buildifer on bazel files

Copy link
Contributor

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution. cc @wu-sheng

@wbpcode
Copy link
Contributor

wbpcode commented Sep 13, 2025

Notice, I applied buildifer on bazel files

I saw it. That's fine to me.

Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

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

Accepted due to @wbpcode 's approval

@wu-sheng wu-sheng merged commit fb3fb00 into apache:master Sep 14, 2025
1 check passed
@mmorel-35 mmorel-35 deleted the bzlmod branch September 14, 2025 13:18
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