Skip to content

Commit 088af34

Browse files
authored
Fix labels with buf plugin push (#3564)
1 parent 7cc13d3 commit 088af34

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
- No changes yet.
5+
- Fix `buf plugin push --label` to allow pushing a plugin with a label.
66

77
## [v1.48.0] - 2024-12-19
88

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ func upload(
187187
createPluginType,
188188
))
189189
}
190+
if len(flags.Labels) > 0 {
191+
options = append(options, bufplugin.UploadWithLabels(flags.Labels...))
192+
}
190193
commits, err := uploader.Upload(ctx, []bufplugin.Plugin{plugin}, options...)
191194
if err != nil {
192195
return nil, err

0 commit comments

Comments
 (0)