Skip to content

Commit 447adbc

Browse files
authored
Fix source-control-url with buf plugin push (#3571)
1 parent 11aa018 commit 447adbc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- Fix `buf plugin push --label` to allow pushing a plugin with a label.
66
- Add `--digest-changes-only` flag to `buf registry {module,plugin} commit list` to filter
77
out commits that have no digest changes.
8+
- Fix `buf plugin push --source-control-url` to allow pushing a plugin with the source
9+
control url.
810

911
## [v1.48.0] - 2024-12-19
1012

private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ func upload(
190190
if len(flags.Labels) > 0 {
191191
options = append(options, bufplugin.UploadWithLabels(flags.Labels...))
192192
}
193+
if flags.SourceControlURL != "" {
194+
options = append(options, bufplugin.UploadWithSourceControlURL(flags.SourceControlURL))
195+
}
193196
commits, err := uploader.Upload(ctx, []bufplugin.Plugin{plugin}, options...)
194197
if err != nil {
195198
return nil, err

0 commit comments

Comments
 (0)