Skip to content

Commit

Permalink
fix: set correct package path in API proto files (#105)
Browse files Browse the repository at this point in the history
Signed-off-by: D4ryl00 <[email protected]>
  • Loading branch information
D4ryl00 authored Oct 17, 2024
1 parent 0b98275 commit af12d05
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 44 deletions.
2 changes: 1 addition & 1 deletion api/go-internal/handshake/handshake.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package handshake;

option go_package = "berty.tech/weshnet/internal/handshake";
option go_package = "berty.tech/weshnet/v2/internal/handshake";

message BoxEnvelope {
bytes box = 1;
Expand Down
2 changes: 1 addition & 1 deletion api/go-internal/tinder/records.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package tinder;

option go_package = "berty.tech/weshnet/pkg/tinder";
option go_package = "berty.tech/weshnet/v2/pkg/tinder";

message Records {
repeated Record records = 1;
Expand Down
2 changes: 1 addition & 1 deletion api/protocol/errcode/errcode.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package weshnet.errcode;

option go_package = "berty.tech/weshnet/pkg/errcode";
option go_package = "berty.tech/weshnet/v2/pkg/errcode";

enum ErrCode {
//----------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package weshnet.outofstoremessage.v1;

import "protocoltypes.proto";

option go_package = "berty.tech/weshnet/pkg/outofstoremessagetypes";
option go_package = "berty.tech/weshnet/v2/pkg/outofstoremessagetypes";

// OutOfStoreMessageService is the service used to open out-of-store messages (e.g. push notifications)
// It is used to open messages with a lightweight protocol service for mobile backgroup processes.
Expand Down
2 changes: 1 addition & 1 deletion api/protocol/protocoltypes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package weshnet.protocol.v1;

option go_package = "berty.tech/weshnet/pkg/protocoltypes";
option go_package = "berty.tech/weshnet/v2/pkg/protocoltypes";

// ProtocolService is the top-level API to manage the Wesh protocol service.
// Each active Wesh protocol service is considered as a Wesh device and is associated with a Wesh user.
Expand Down
2 changes: 1 addition & 1 deletion api/protocol/replicationtypes/bertyreplication.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package weshnet.replication.v1;
import "protocoltypes.proto";
import "tagger/tagger.proto";

option go_package = "berty.tech/weshnet/pkg/replicationtypes";
option go_package = "berty.tech/weshnet/v2/pkg/replicationtypes";

// ReplicationService
service ReplicationService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package weshnet.account.v1;

option go_package = "berty.tech/weshnet/pkg/verifiablecredstypes";
option go_package = "berty.tech/weshnet/v2/pkg/verifiablecredstypes";

// StateChallenge serialized and signed state used when requesting a challenge
message StateChallenge {
Expand Down
2 changes: 1 addition & 1 deletion buf.gen.tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ version: v1
plugins:
- name: gotag
out: ./
opt: module=berty.tech/weshnet
opt: module=berty.tech/weshnet/v2
22 changes: 11 additions & 11 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: v2
plugins:
- local: protoc-gen-go
out: ./
opt: module=berty.tech/weshnet
- local: protoc-gen-go-grpc
out: ./
opt: module=berty.tech/weshnet
- local: protoc-gen-grpc-gateway
out: ./
opt:
- module=berty.tech/weshnet
- generate_unbound_methods=true
- local: protoc-gen-go
out: ./
opt: module=berty.tech/weshnet/v2
- local: protoc-gen-go-grpc
out: ./
opt: module=berty.tech/weshnet/v2
- local: protoc-gen-grpc-gateway
out: ./
opt:
- module=berty.tech/weshnet/v2
- generate_unbound_methods=true
8 changes: 4 additions & 4 deletions internal/handshake/handshake.pb.go

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

7 changes: 4 additions & 3 deletions pkg/errcode/errcode.pb.go

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

8 changes: 4 additions & 4 deletions pkg/outofstoremessagetypes/outofstoremessage.pb.go

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

9 changes: 5 additions & 4 deletions pkg/protocoltypes/protocoltypes.pb.go

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

6 changes: 3 additions & 3 deletions pkg/replicationtypes/bertyreplication.pb.go

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

7 changes: 4 additions & 3 deletions pkg/tinder/records.pb.go

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

8 changes: 4 additions & 4 deletions pkg/verifiablecredstypes/bertyverifiablecreds.pb.go

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

0 comments on commit af12d05

Please sign in to comment.