-
Notifications
You must be signed in to change notification settings - Fork 259
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
Vendor protobuf tools #1592
Vendor protobuf tools #1592
Conversation
bd7a007
to
25d038b
Compare
25d038b
to
f96b45a
Compare
rebased to fix merge conflict |
Add `protobuild` and `protoc-gen-gogoctrd` to `tools.go` so they are tracked and vendored. This way, protobufs are always generated with the same version, and `protoc-gen-gogoctrd` can be installed directly via `go install`. Simplify GitHub CI protobuf job. Add empty `after` section to Protobuild to suppress errors about missing directories `usr/local/include` and `/usr/include` Add protobuf file to gitignore so it does not affect `git diff` results. Remove unneeded `gogoproto/gogo.proto` in protobuf files. Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
f96b45a
to
2c1df91
Compare
@@ -37,6 +37,9 @@ rootfs-conv/* | |||
deps/* | |||
out/* | |||
|
|||
# protobuf files | |||
/protobuf/* |
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.
should we also have "protobuf/*" without the root slash?
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.
iirc, i ran into an issue where a vendored module had a folder called protobuf
, and it caused all kinds of shenanigans 😅
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
obe by #1706 |
Add
protobuild
andprotoc-gen-gogoctrd
totools.go
so they are tracked and vendored.This way, protobufs are always generated with the same version, and
protoc-gen-gogoctrd
can be installed directly viago install
, instead of needing to pullcontainerd/containerd
and install from there.Simplify GitHub CI protobuf job.
Add empty
after
section toProtobuild.toml
to suppress errors about missing directoriesusr/local/include
and/usr/include
Remove unneeded
gogoproto/gogo.proto
in protobuf files, which also raises protobuild warnings.Add protobuf file to gitignore so it does not affect
git diff
results.Signed-off-by: Hamza El-Saawy hamzaelsaawy@microsoft.com