Skip to content

Commit

Permalink
Fix buf plugin push --label
Browse files Browse the repository at this point in the history
This fixes additional labels with buf plugin push.
  • Loading branch information
emcfarlane committed Dec 27, 2024
1 parent 19dc32a commit 208013e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ func upload(
createPluginType,
))
}
if len(flags.Labels) > 0 {
options = append(options, bufplugin.UploadWithLabels(flags.Labels...))
}
commits, err := uploader.Upload(ctx, []bufplugin.Plugin{plugin}, options...)
if err != nil {
return nil, err
Expand Down

0 comments on commit 208013e

Please sign in to comment.