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

[hotfix] Fix buf generation errors #742

Merged
merged 7 commits into from
Sep 24, 2024

Conversation

njooma
Copy link
Member

@njooma njooma commented Sep 23, 2024

UPDATE: The runtime checks make sure that the protobuf version in python is always higher than the compiler's version. So I have to pin them much higher than expected


Protoletariat, a tool we use to fix protobuf's terrible import structure, hasn't been updated in over a year.

Protobuf's new version includes a runtime check.

We couldn't generate the appropriate code to use with the runtime because we couldn't update protoletariat, even though it works with the newest version of protobuf (anecdotally).

So this PR simply overrides the protobuf version the best we can. since poetry doesn't allow for dependency overrides, I just added a pip install step after the normal install to make it work.

@njooma njooma requested a review from a team as a code owner September 23, 2024 17:25
@njooma njooma merged commit 3a682dc into viamrobotics:main Sep 24, 2024
12 checks passed
@njooma njooma deleted the hotfix/update-buf branch September 24, 2024 14:29
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.

2 participants