Skip to content

Add buf scaffold command to setup buf.yaml in a git repository#4418

Draft
cyinma wants to merge 2 commits intomainfrom
cyinma/buf-scaffold-cmd
Draft

Add buf scaffold command to setup buf.yaml in a git repository#4418
cyinma wants to merge 2 commits intomainfrom
cyinma/buf-scaffold-cmd

Conversation

@cyinma
Copy link
Copy Markdown
Member

@cyinma cyinma commented Mar 30, 2026

fix #3159

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 30, 2026, 5:01 PM

push.NewCommand("push", builder),
convert.NewCommand("convert", builder),
curl.NewCommand("curl", builder),
scaffold.NewCommand("scaffold", builder),
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am thinking should this be in beta first, but I don't think we want this to be buf config scaffold

if exists {
return fmt.Errorf("buf.yaml already exists in %s, will not overwrite", dirPath)
}
fsys := os.DirFS(dirPath)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

not using the storage.ReadBucket abstraction since in the end we need to read the raw content for parser

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.

buf scaffold command to setup a new Proto definition git repository

1 participant