Skip to content

Migrate from protobuild to buf#389

Merged
kzys merged 1 commit intomainfrom
buf
Mar 6, 2026
Merged

Migrate from protobuild to buf#389
kzys merged 1 commit intomainfrom
buf

Conversation

@kzys
Copy link
Member

@kzys kzys commented Feb 27, 2026

Like containerd did recently, we can migrate from protobuild to buf.

containerd/containerd#12762

# /usr/local is not writable from GitHub Actions' user
sudo unzip protoc-21.5-linux-x86_64.zip -d /usr/local
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
Copy link
Member

Choose a reason for hiding this comment

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

Curious on having this vs

  - remote: buf.build/grpc/go:v1.2.0
    out: .
    opt:
      - paths=source_relative

in buf.gen.yaml

What are benefits?

Copy link
Member Author

Choose a reason for hiding this comment

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

That was for reducing the size of the diff, but it doesn't actually affect the output. Let me remove the flag.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh sorry. I thought you were talking about -paths=source_relative. Does buf.build/grpc/go:VERSION lock the version? Let me double-check.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, you can pin version.

Copy link
Member Author

@kzys kzys Mar 5, 2026

Choose a reason for hiding this comment

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

The only problem I got was https://buf.build/docs/bsr/rate-limits/ and I made my own account to be authenticated.

@kzys kzys force-pushed the buf branch 2 times, most recently from aa37a61 to 595401c Compare February 27, 2026 20:56
@kzys kzys marked this pull request as draft February 27, 2026 21:04
@kzys kzys force-pushed the buf branch 2 times, most recently from 8d4f9a7 to 727b2de Compare March 5, 2026 01:57
@kzys kzys marked this pull request as ready for review March 5, 2026 02:01
Comment on lines -2 to +4
name: "github.com/containerd/cgroups/cgroup2/stats/metrics.proto"
file: {
name: "cgroup2/stats/metrics.proto"
package: "io.containerd.cgroups.v2"
message_type {
message_type: {
Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently not having : is valid, but the new implementation always outputs :.

https://protobuf.com/docs/language-spec

The grammar only allows the separating colon (:) between field name and value to be omitted when the value is a message literal or a list of message literals. This still allows an empty list to be used without a preceding colon.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

The latest Buf updates on your PR. Results from workflow CI / proto (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped⏩ skipped❌ failed (2)Mar 5, 2026, 2:49 AM

Like containerd did recently, we can migrate from protobuild to buf.

containerd/containerd#12762

Signed-off-by: Kazuyoshi Kato <kazuyoshi.kato@baseten.co>
uses: bufbuild/buf-action@v1
with:
# We use the action to install buf.
setup_only: true
Copy link
Member Author

Choose a reason for hiding this comment

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

The action no longer posts PR comments because of setup_only:true.

@kzys kzys requested a review from mxpv March 5, 2026 03:01
@kzys kzys merged commit aa6a9dc into main Mar 6, 2026
8 checks passed
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