-
Notifications
You must be signed in to change notification settings - Fork 541
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
Fix #4583: Deprecated Protobuf Version #4596
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Smarshal21. I left one high-level comment, but otherwise I think we need to wait for the CI run here.
You'll also need to update the Bazel build. For reference, see:
Line 149 in 1eebfb5
strip_prefix = "protobuf-%s" % HTTP_DEPENDENCY_VERSIONS["protobuf_tools"]["version"], |
oppia-android/third_party/versions.bzl
Line 121 in 1eebfb5
"version": "3.11.0", |
I'm also wondering whether we should consider introducing builds for the app on OS X to ensure that it builds correctly, as recent changes seem to periodically cause issues.
Finally, I'm updating this PR to be in 'draft' since it's not yet code complete.
@@ -3,12 +3,13 @@ apply plugin: 'com.google.protobuf' | |||
|
|||
protobuf { | |||
protoc { | |||
artifact = 'com.google.protobuf:protoc:3.14.0:osx-x86_64' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just started the CI run, so we'll need to see if it works, but will this artifact actually work non-OS X platforms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BenHenning i have updated the build bazel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that addresses my question @Smarshal21. It seems like this updated Gradle file won't work for non-Linux platforms (which is completely separate from the Bazel builds).
Also @Smarshal21 please use the exact PR checklist & sections (if UI screenshots aren't relevant, you can leave a brief explanation for why but otherwise the section should still be there since reviewers specifically look for it). |
@BenHenning @seanlip ptal at the new commit , i have updated the build bazel |
Unassigning @Smarshal21 since a re-review was requested. @Smarshal21, please make sure you have addressed all review comments. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Smarshal21 thanks for adding the Bazel change, but you'll need to build the app locally on both Gradle & Bazel to make sure it's working. Per the CI checks, it looks like the build isn't working on either build platform. PTAL at the CI checks to determine what needs to be changed in the PR.
@@ -3,12 +3,13 @@ apply plugin: 'com.google.protobuf' | |||
|
|||
protobuf { | |||
protoc { | |||
artifact = 'com.google.protobuf:protoc:3.14.0:osx-x86_64' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that addresses my question @Smarshal21. It seems like this updated Gradle file won't work for non-Linux platforms (which is completely separate from the Bazel builds).
Hi @Smarshal21, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Explanation
Fixes Deprecated protobuf version #4583:
Basically it's like for the older versions of the protobuf there is no executable jars for the mac m1 arm architecture so this PR updates the protobuf version for the project so that we can also support arm based architecture chips.
"This PR Fixes Deprecated protobuf version #4583:"
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: