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

Pin the version of the rust code generation tool #500

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

duskmoon314
Copy link
Contributor

In the previous commit, the versions of rust, protoc-gen-prost, and so on are not pinned. That is, the latest version is used. This will cause unexpected CI failure for commits unrelated to rust gen.

This commit pins the version in the Dockerfile:

rust: 1.81.0
protoc-gen-prost: 0.4.0
protoc-gen-prost-crate: 0.4.1
protoc-gen-tonic: 0.4.1

The dependencies are also updated:

prost: 0.13.1 -> 0.13.2
tonic: 0.12.0 -> 0.12.1

The rust code is regenerated, and the version is bumped to 1.4.0

In the previous commit, the version of rust, protoc-gen-prost and so on
are not pinned. That is, the latest version is used.
This will cause unexpected CI failure for commits unrelated to rust gen.

This commit pins the version in the Dockerfile:

rust: 1.81.0
protoc-gen-prost: 0.4.0
protoc-gen-prost-crate: 0.4.1
protoc-gen-tonic: 0.4.1

The dependencies are also updated:

prost: 0.13.1 -> 0.13.2
tonic: 0.12.0 -> 0.12.1

The rust code is regenerated and the version is bumped to 1.4.0

Signed-off-by: Campbell He <[email protected]>
@chrispsommers chrispsommers merged commit 4f1c841 into p4lang:main Sep 14, 2024
5 checks passed
@chrispsommers
Copy link
Collaborator

@duskmoon314, Thanks for fixing this so quickly, and thanks for contributing Rust protobufs to P4Runtime!

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