Skip to content

Commit

Permalink
Add support for C language plugins (#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkwarren authored Nov 28, 2023
1 parent 4eab82b commit 57a9b07
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 88 deletions.
3 changes: 2 additions & 1 deletion private/bufpkg/bufplugin/bufplugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ func TestLanguagesToProtoLanguages(t *testing.T) {
},
protoLanguages,
)
protoLanguages, err = OutputLanguagesToProtoLanguages([]string{"java", "kotlin"})
protoLanguages, err = OutputLanguagesToProtoLanguages([]string{"java", "kotlin", "c"})
require.NoError(t, err)
assert.Equal(t,
[]registryv1alpha1.PluginLanguage{
registryv1alpha1.PluginLanguage_PLUGIN_LANGUAGE_JAVA,
registryv1alpha1.PluginLanguage_PLUGIN_LANGUAGE_KOTLIN,
registryv1alpha1.PluginLanguage_PLUGIN_LANGUAGE_C,
},
protoLanguages,
)
Expand Down
179 changes: 92 additions & 87 deletions private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 57a9b07

Please sign in to comment.