Skip to content

Commit

Permalink
Fix labels with buf plugin push (#3564)
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane authored Dec 27, 2024
1 parent 7cc13d3 commit 088af34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]

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

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

Expand Down
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 088af34

Please sign in to comment.