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

Switch eth/v1 and v1alpha1 to protoc-gen-go-cast #210

Merged
merged 110 commits into from
May 11, 2021
Merged

Switch eth/v1 and v1alpha1 to protoc-gen-go-cast #210

merged 110 commits into from
May 11, 2021

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Dec 8, 2020

This PR changes eth/v1 and eth/v1alpha1 to use protoc-gen-go-cast entirely.

Also unites _gateway into the normal folders.

Please focus your review on the .proto files, the rest is mainly generated. The only changes should be extension tags.

Dependencies are rather messy but would rather clean them up at a later point.

This in particular changes us from relying on the compilers at: "github.com/gogo/protobuf/proto"
To start using the native protobuf v2 compilers hosted at: "google.golang.org/protobuf/proto" (not github.com, thats v1)

More context on the changes here:
https://hackmd.io/wO5rzfVWS3GrS-L7FNXKGg

prestonvanloon
prestonvanloon previously approved these changes Apr 16, 2021
@@ -0,0 +1,3 @@
// +build ignore

package ignore
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this? I forget...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of the compilation output. I can try removing it in a later point but not in scope for this repo.

Comment on lines 1 to 4
# gRPC Gateway

This package is contains generated files for applications that wish to use eth/v1alpha as a
[gRPC gateway](https://github.com/grpc-ecosystem/grpc-gateway).
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to just delete this file? seems weird to clear out all of the contents.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced with a README in v1/ and v1alpha1/

Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

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

Please revert all the permission changes, a lot of files have been changed from 0755 to 0644

WORKSPACE Outdated
],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")

go_rules_dependencies()

go_register_toolchains()
go_register_toolchains(version="1.15.5")
Copy link
Member

Choose a reason for hiding this comment

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

lets put this in parity with out current used go version in prysm 1.16.4 . Will also need rules_go to again be updated above. Same for gazelle

go.mod Show resolved Hide resolved
@prestonvanloon
Copy link
Member

@nisdas the permissions are supposed to be 0644.

0xKiwi and others added 3 commits May 11, 2021 13:40
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
@0xKiwi 0xKiwi merged commit 89fcd65 into master May 11, 2021
@delete-merged-branch delete-merged-branch bot deleted the gen-go-cast branch May 11, 2021 18:52
@prestonvanloon prestonvanloon linked an issue May 17, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

beacon_block_altair.pb.go missing from HEAD
5 participants