Skip to content

Commit

Permalink
Update latest-plugins utility (#1324)
Browse files Browse the repository at this point in the history
Include the latest community plugins by default but continue to skip
deprecated plugins.
  • Loading branch information
pkwarren authored Jun 28, 2024
1 parent 7fa9de7 commit 333f3a8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cmd/latest-plugins/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
latest-plugins outputs the latest non-community plugins (and their dependencies) in JSON format to stdout.
latest-plugins outputs the latest plugins (and their dependencies) in JSON format to stdout.
To determine available plugins, it downloads the plugin-releases.json file from the latest bufbuild/plugins release.
Additionally, it verifies the contents of the file against the minisign signature.
Expand Down Expand Up @@ -105,18 +105,22 @@ func getLatestPluginsAndDependencies(
return nil, errors.New("failed to split plugin pluginName into owner/pluginName")
}
if _, ok := additionalPluginsSet[pluginRelease.PluginName]; !ok {
// Don't include deprecated plugins.
switch owner {
case "community": // Disable community plugins by default
continue
case "bufbuild": // Don't include deprecated plugins.
case "community":
if pluginName == "mitchellh-go-json" {
continue
}
case "bufbuild":
switch pluginName {
case "connect-es",
"connect-go",
"connect-kotlin",
"connect-query",
"connect-swift",
"connect-swift-mocks",
"connect-web":
"connect-web",
"protoschema-bigquery":
continue
}
}
Expand Down

0 comments on commit 333f3a8

Please sign in to comment.