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

Update protobuf to 29.3 #25248

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update protobuf to 29.3 #25248

wants to merge 2 commits into from

Conversation

joca-bt
Copy link

@joca-bt joca-bt commented Feb 11, 2025

Versions 29.0 and below pollute the default maven repo name with protobuf's dependencies. Update to a version that doesn't.

@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Feb 11, 2025
@sgowroji sgowroji added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label Feb 12, 2025
@joca-bt joca-bt closed this Feb 12, 2025
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 12, 2025
@joca-bt joca-bt reopened this Feb 12, 2025
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Feb 12, 2025
@Wyverald
Copy link
Member

the test logs are in the "artifacts" tab of the failed test job. Your failure is probably because you need to update the default lockfile (bazel run //src/test/tools/bzlmod:update_default_lock_file).

Versions 29.0 and below pollute the default maven repo name with protobuf's
dependencies. Update to a version that doesn't.
@joca-bt
Copy link
Author

joca-bt commented Feb 13, 2025

The change moves some jar artifacts from a repository (maven) to another (protobuf_maven) and there are several errors related to downloading these artifacts.

I've noticed that the command that is failing has this flag (which I am unfamiliar with):

--override_repository=$(cat derived/maven/MAVEN_CANONICAL_REPO_NAME)=derived/maven

I am guessing it's probably related to that.

Java artifacts used by protobuf are now under repository protobuf_maven instead
of maven. Pass along this information.
@@ -202,11 +202,19 @@ write_file(
content = [get_canonical_repo_name("@maven")],
)

_PROTOBUF_MAVEN_CANONICAL_REPO_NAME = "rules_jvm_external++maven+protobuf_maven"

write_file(
Copy link
Author

Choose a reason for hiding this comment

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

@Wyverald I'm not particularly happy with the result, maybe you can advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants