Skip to content

Commit

Permalink
feat(buf): use buf deps instead of third party
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jan 16, 2023
1 parent b83a09c commit bbcde9e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
8 changes: 2 additions & 6 deletions buf.gen.proto.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
version: v1

plugins:
- name: gocosmos
out: .
opt:
- plugins=interfacetype+grpc

opt: plugins=grpc
- name: grpc-gateway
out: .
opt:
- logtostderr=true
opt: logtostderr=true,allow_colon_final_segments=true
1 change: 0 additions & 1 deletion buf.work.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: v1
directories:
- proto
- third_party/proto
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/CosmWasm/wasmd v0.28.0
github.com/armon/go-metrics v0.4.1
github.com/cosmos/cosmos-sdk v0.46.7
github.com/cosmos/gogoproto v1.4.3
github.com/cosmos/ibc-go/v5 v5.1.0
github.com/cosmos/interchain-accounts v0.3.5
github.com/gogo/protobuf v1.3.3
Expand All @@ -16,6 +17,7 @@ require (
github.com/ichiban/prolog v0.15.1
github.com/ignite/cli v0.25.2
github.com/prometheus/client_golang v1.13.0
github.com/smartystreets/goconvey v1.7.2
github.com/spf13/cast v1.5.0
github.com/spf13/cobra v1.6.0
github.com/spf13/pflag v1.0.5
Expand Down Expand Up @@ -175,7 +177,6 @@ require (
github.com/sergi/go-diff v1.2.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/smartystreets/assertions v1.2.0 // indirect
github.com/smartystreets/goconvey v1.7.2 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.13.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ github.com/cosmos/cosmos-sdk v0.46.7/go.mod h1:fqKqz39U5IlEFb4nbQ72951myztsDzFKK
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
github.com/cosmos/gogoproto v1.4.3 h1:RP3yyVREh9snv/lsOvmsAPQt8f44LgL281X0IOIhhcI=
github.com/cosmos/gogoproto v1.4.3/go.mod h1:0hLIG5TR7IvV1fme1HCFKjfzW9X2x0Mo+RooWXCnOWU=
github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y=
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
github.com/cosmos/iavl v0.19.4 h1:t82sN+Y0WeqxDLJRSpNd8YFX5URIrT+p8n6oJbJ2Dok=
Expand Down
17 changes: 17 additions & 0 deletions proto/buf.lock
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: cosmos
repository: cosmos-proto
commit: 1935555c206d4afb9e94615dfd0fad31
- remote: buf.build
owner: cosmos
repository: cosmos-sdk
commit: 47ab4b2a7a064892a56777ebaafca444
- remote: buf.build
owner: cosmos
repository: gogo-proto
commit: 34d970b699f84aa382f3c29773a60836
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 75b4300737fb4efca0831636be94e517
5 changes: 5 additions & 0 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: v1
name: buf.build/okp4/okp4d
deps:
- buf.build/cosmos/cosmos-sdk
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/gogo-proto
- buf.build/googleapis/googleapis
breaking:
use:
- FILE
Expand Down

0 comments on commit bbcde9e

Please sign in to comment.