Skip to content

Commit d867ba7

Browse files
committed
Run cosmos-sdk through buf as well
1 parent c24f235 commit d867ba7

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ yarn.lock
33

44
node_modules/
55

6+
/protos/cosmos-sdk
67
/protos/ibc-go
78
/protos/wasmd
89

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[submodule "cosmos-sdk"]
2-
path = protos/cosmos-sdk
2+
path = protos/cosmos-sdk-src
33
url = https://github.com/cosmos/cosmos-sdk
44
[submodule "wasmd"]
55
path = protos/wasmd-src

scripts/codegen.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ const telescope = require("@hyperweb/telescope").default;
77
const outPath = join(__dirname, "/../src");
88

99
telescope({
10-
protoDirs: [
11-
"protos/cosmos-sdk/proto",
12-
"protos/cosmos-sdk/third_party/proto",
13-
"protos/wasmd",
14-
"protos/ibc-go",
15-
],
10+
protoDirs: ["protos/cosmos-sdk", "protos/wasmd", "protos/ibc-go"],
1611
outPath: outPath,
1712
options: {
1813
logLevel: 0,

scripts/exports_protos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
set -o errexit -o nounset -o pipefail
33
command -v shellcheck >/dev/null && shellcheck "$0"
44

5-
for dir in ibc-go wasmd ; do
5+
for dir in cosmos-sdk ibc-go wasmd; do
66
rm -rf "protos/$dir"
77
mkdir -p "protos/$dir"
8-
echo "Autogenerated folder, see export_protos.sh" > "protos/$dir/README.md"
8+
echo "Autogenerated folder, see export_protos.sh" >"protos/$dir/README.md"
99

1010
buf export "protos/$dir-src/" --output "protos/$dir"
1111
done

0 commit comments

Comments
 (0)