@cryptotaxi247 / kubo / commits / 4d81560dd

fix(net/service/pb) rename proto package -> service_pb

Brian Tiger Chow committed Oct 22, 2014 at 05:13 UTC 4d81560dd85de912d97b27656226c2803eb760c8
3 files changed +13 -12
net/service/internal/pb/Makefile
+7 -4
@@ -1,8 +1,11 @@
1 +PB = $(wildcard *.proto)
2 +GO = $(PB:.proto=.pb.go)
3
2 -all: request.pb.go
4 +all: $(GO)
5
4 -request.pb.go: request.proto
5 - protoc --gogo_out=. --proto_path=../../../../../:/usr/local/opt/protobuf/include:. $<
6 +%.pb.go: %.proto
7 + protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $<
8
9 clean:
8 - rm request.pb.go
10 + rm -f *.pb.go
11 + rm -f *.go
net/service/internal/pb/service.pb.go renamed
+5 -7
@@ -1,25 +1,23 @@
1 // Code generated by protoc-gen-gogo.
2 -// source: request.proto
2 +// source: service.proto
3 // DO NOT EDIT!
4
5 /*
6 -Package service is a generated protocol buffer package.
6 +Package service_pb is a generated protocol buffer package.
7
8 It is generated from these files:
9 - request.proto
9 + service.proto
10
11 It has these top-level messages:
12 PBRequest
13 */
14 -package service
14 +package service_pb
15
16 import proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
17 -import json "encoding/json"
17 import math "math"
18
20 -// Reference proto, json, and math imports to suppress error if they are not otherwise used.
19 +// Reference imports to suppress errors if they are not otherwise used.
20 var _ = proto.Marshal
22 -var _ = &json.SyntaxError{}
21 var _ = math.Inf
22
23 type PBRequest struct {
net/service/internal/pb/service.proto renamed
+1 -1
@@ -1,4 +1,4 @@
1 -package service;
1 +package service.pb;
2
3 message PBRequest {
4 required bytes Data = 1;