Skip to content

Commit 07b377a

Browse files
committed
cleaner protobuf generation
1 parent 21eb011 commit 07b377a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

diff/diff.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import "bytes"
44

55
// NOTE: types are code-generated in diff.pb.go.
66

7-
//go:generate protoc -I../../../../github.com/gogo/protobuf/protobuf -I../../../../github.com/gogo/protobuf -I../../../../sourcegraph.com/sqs/pbtypes -I. --gogo_out=. diff.proto
8-
//go:generate sed -i "s#timestamp\\.pb#sourcegraph.com/sqs/pbtypes#g" diff.pb.go
9-
//go:generate sed -i "s#vcs\\.pb#sourcegraph.com/sourcegraph/go-vcs/vcs#g" diff.pb.go
7+
//go:generate protoc -I../../../.. -I ../../../../github.com/gogo/protobuf/protobuf -I. --gogo_out=. diff.proto
108

119
// Stat computes the number of lines added/changed/deleted in all
1210
// hunks in this file's diff.

diff/diff.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

diff/diff.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
syntax = "proto3";
22
package diff;
33

4-
import "gogoproto/gogo.proto";
5-
import "timestamp.proto";
6-
4+
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
5+
import "sourcegraph.com/sqs/pbtypes/timestamp.proto";
76

87
// A FileDiff represents a unified diff for a single file.
98
//

0 commit comments

Comments
 (0)