Skip to content

Commit 567c1aa

Browse files
feat: Flatten vendored Cosmos SDK/IBC and fix local protobuf generation (#2690)
2 parents c9d613c + 06d86d7 commit 567c1aa

2,527 files changed

Lines changed: 17227 additions & 79862 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/proto-lint.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
pull_request:
66
paths:
77
- "proto/**"
8+
- "lib/cosmos-sdk/proto/**"
9+
- "lib/ibc-go/proto/**"
10+
- "buf.work.yaml"
11+
- "contrib/scripts/proto.sh"
12+
- "contrib/scripts/protocgen.sh"
13+
- "go_mod_test.go"
14+
- "justfile"
815

916
# Allow concurrent runs on main/release branches but isolates other branches
1017
concurrency:
@@ -34,7 +41,27 @@ jobs:
3441
- uses: bufbuild/buf-setup-action@v1.50.0
3542
with:
3643
github_token: ${{ github.token }}
37-
- uses: bufbuild/buf-breaking-action@v1
44+
- name: Check for breaking changes
45+
run: >-
46+
buf breaking proto
47+
--against "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},subdir=proto"
48+
--exclude-imports
49+
--error-format github-actions
50+
51+
proto-gen-go:
52+
name: Verify generated Go output
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v7
56+
- name: Set up Go
57+
uses: actions/setup-go@v6
3858
with:
39-
input: "proto"
40-
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},subdir=proto"
59+
go-version-file: go.mod
60+
- name: Install just
61+
uses: taiki-e/install-action@just
62+
- name: Regenerate protobuf output
63+
run: just proto gen
64+
- name: Verify generated output is clean
65+
run: git diff --exit-code
66+
- name: Verify generated imports
67+
run: go test . -run TestGeneratedProtoImports_NoUpstreamModules

0 commit comments

Comments
 (0)