Skip to content

Commit

Permalink
go_features.proto: move .proto file next to generated .pb.go file
Browse files Browse the repository at this point in the history
Change-Id: Ia24ca1ad2186bcc95681081d2719ee834b385728
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/565955
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Lasse Folger <[email protected]>
Reviewed-by: Michael Stapelberg <[email protected]>
  • Loading branch information
lfolger committed Feb 22, 2024
1 parent 11de0a6 commit f9eb6c7
Show file tree
Hide file tree
Showing 6 changed files with 482 additions and 485 deletions.
92 changes: 46 additions & 46 deletions cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go

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

2 changes: 1 addition & 1 deletion cmd/protoc-gen-go/testdata/protoeditions/enum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2023";

package goproto.protoc.protoeditions;

import "reflect/protodesc/proto/go_features.proto";
import "types/gofeaturespb/go_features.proto";

option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/protoeditions";
option features.enum_type = CLOSED;
Expand Down
9 changes: 3 additions & 6 deletions internal/cmd/generate-protos/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,13 @@ func generateLocalProtos() {
path: "cmd/protoc-gen-go/testdata",
pkgPaths: map[string]string{
"cmd/protoc-gen-go/testdata/nopackage/nopackage.proto": "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage",
"reflect/protodesc/proto/go_features.proto": "google.golang.org/protobuf/types/gofeaturespb",
},
annotate: map[string]bool{"cmd/protoc-gen-go/testdata/annotations/annotations.proto": true},
}, {
path: "internal/testprotos",
exclude: map[string]bool{"internal/testprotos/irregular/irregular.proto": true},
pkgPaths: map[string]string{"reflect/protodesc/proto/go_features.proto": "google.golang.org/protobuf/types/gofeaturespb"},
path: "internal/testprotos",
exclude: map[string]bool{"internal/testprotos/irregular/irregular.proto": true},
}, {
path: "reflect/protodesc/proto",
pkgPaths: map[string]string{"reflect/protodesc/proto/go_features.proto": "google.golang.org/protobuf/types/gofeaturespb"},
path: "reflect/protodesc/proto",
}}
excludeRx := regexp.MustCompile(`legacy/.*/`)
for _, d := range dirs {
Expand Down
Loading

0 comments on commit f9eb6c7

Please sign in to comment.