Skip to content

Commit

Permalink
fix: specify valid go_package option (#293)
Browse files Browse the repository at this point in the history
* fix: specify valid go_package option

The explicitly specified package name is invalid since it identical
to one of the keywords in Go (e.g., "package" or "type").
Remove explicitly specifying the name, which will cause protoc-gen-go
to derive the package name from the last path segment.
If the name is not valid, it will automatically sanitize it
to produce a valid package identifier (e.g., "_package" or "_type").

Committer: @dsnet
PiperOrigin-RevId: 370589666

Source-Link: googleapis/googleapis@e7d77d6

Source-Link: googleapis/googleapis-gen@b6ec2fd

* 🦉 Updates from OwlBot

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 27, 2021
1 parent eb0c7b2 commit e73b99c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ syntax = "proto3";

package grafeas.v1beta1.package;

option go_package = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package;package";
option go_package = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package";
option java_multiple_files = true;
option java_package = "io.grafeas.v1beta1.pkg";
option objc_class_prefix = "GRA";
Expand Down

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

0 comments on commit e73b99c

Please sign in to comment.