diff --git a/.github/workflows/check-generated.yml b/.github/workflows/check-generated.yml index f484aa08da8..1f3cae8096e 100644 --- a/.github/workflows/check-generated.yml +++ b/.github/workflows/check-generated.yml @@ -45,7 +45,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - uses: actions/checkout@v4 with: diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b03dbb802a8..dcadcd29b79 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - uses: actions/checkout@v4 - uses: technote-space/get-diff-action@v6 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ccc896ce022..b0d4114bb20 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,8 +8,11 @@ name: Golang Linter # # To run this locally, simply run `make lint` from the root of the repo. +# Effectively disable this temporarily on the fork repo. Lint has been broken across +# the repo for a while, and the best way to fix is to upgrade to latest canonical version. on: - pull_request: + # pull_request: + # merge_group: push: branches: - v0.38.x diff --git a/Makefile b/Makefile index b004c73df2c..18721d40def 100644 --- a/Makefile +++ b/Makefile @@ -120,8 +120,8 @@ mockery: #? check-proto-deps: Check protobuf deps check-proto-deps: -ifeq (,$(shell which protoc-gen-gogofaster)) - @go install github.com/cosmos/gogoproto/protoc-gen-gogofaster@latest +ifeq (,$(shell which protoc-gen-gocosmos)) + @go install github.com/cosmos/gogoproto/protoc-gen-gocosmos@latest endif .PHONY: check-proto-deps @@ -145,7 +145,7 @@ proto-gen: check-proto-deps #? proto-lint: Lint protobuf files proto-lint: check-proto-deps @echo "Linting Protobuf files" - @go run github.com/bufbuild/buf/cmd/buf lint + @go run github.com/bufbuild/buf/cmd/buf@latest lint .PHONY: proto-lint #? proto-format: Format protobuf files @@ -327,12 +327,12 @@ build_c-amazonlinux: #? localnet-start: Run a 4-node testnet locally localnet-start: localnet-stop build-docker-localnode @if ! [ -f build/node0/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/cometbft:Z cometbft/localnode testnet --config /etc/cometbft/config-template.toml --o . --starting-ip-address 192.167.10.2; fi - docker-compose up + docker compose up .PHONY: localnet-start #? localnet-stop: Stop testnet localnet-stop: - docker-compose down + docker compose down .PHONY: localnet-stop #? build-contract-tests-hooks: Build hooks for dredd, to skip or add information on some steps diff --git a/abci/types/types.pb.go b/abci/types/types.pb.go index 203aeeeb313..5b9860d6b7e 100644 --- a/abci/types/types.pb.go +++ b/abci/types/types.pb.go @@ -4412,6 +4412,7 @@ func _ABCI_FinalizeBlock_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +var ABCI_serviceDesc = _ABCI_serviceDesc var _ABCI_serviceDesc = grpc.ServiceDesc{ ServiceName: "tendermint.abci.ABCI", HandlerType: (*ABCIServer)(nil), diff --git a/buf.gen.yaml b/buf.gen.yaml index a36032410ce..303376dde3c 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,6 +1,6 @@ version: v1 plugins: - - name: gogofaster + - name: gocosmos out: ./proto/ opt: - Mgoogle/protobuf/timestamp.proto=github.com/cosmos/gogoproto/types diff --git a/buf.yaml b/buf.yaml deleted file mode 100644 index 5f837667856..00000000000 --- a/buf.yaml +++ /dev/null @@ -1,13 +0,0 @@ -build: - roots: - - proto -lint: - use: - - BASIC - - FILE_LOWER_SNAKE_CASE - - UNARY_RPC - ignore: - - gogoproto -breaking: - use: - - FILE diff --git a/proto/dydxcometbft/clob/tx.proto b/proto/dydxcometbft/clob/tx.proto index 93edcd8b6f4..cee85fbd4e1 100644 --- a/proto/dydxcometbft/clob/tx.proto +++ b/proto/dydxcometbft/clob/tx.proto @@ -2,9 +2,7 @@ syntax = "proto3"; package dydxcometbft.clob; import "gogoproto/gogo.proto"; -import "cosmos_proto/cosmos.proto"; import "dydxcometbft/clob/order.proto"; -import "dydxcometbft/clob/matches.proto"; // this line is used by starport scaffolding # proto/tx/import diff --git a/proto/tendermint/rpc/grpc/types.pb.go b/proto/tendermint/rpc/grpc/types.pb.go index 393c7394764..c27afb4e246 100644 --- a/proto/tendermint/rpc/grpc/types.pb.go +++ b/proto/tendermint/rpc/grpc/types.pb.go @@ -329,6 +329,7 @@ func _BroadcastAPI_BroadcastTx_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +var BroadcastAPI_serviceDesc = _BroadcastAPI_serviceDesc var _BroadcastAPI_serviceDesc = grpc.ServiceDesc{ ServiceName: "tendermint.rpc.grpc.BroadcastAPI", HandlerType: (*BroadcastAPIServer)(nil), diff --git a/rpc/grpc/types.pb.go b/rpc/grpc/types.pb.go index 393c7394764..c27afb4e246 100644 --- a/rpc/grpc/types.pb.go +++ b/rpc/grpc/types.pb.go @@ -329,6 +329,7 @@ func _BroadcastAPI_BroadcastTx_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +var BroadcastAPI_serviceDesc = _BroadcastAPI_serviceDesc var _BroadcastAPI_serviceDesc = grpc.ServiceDesc{ ServiceName: "tendermint.rpc.grpc.BroadcastAPI", HandlerType: (*BroadcastAPIServer)(nil), diff --git a/test/e2e/pkg/infra/docker/docker.go b/test/e2e/pkg/infra/docker/docker.go index 660b400309d..c3588c0930d 100644 --- a/test/e2e/pkg/infra/docker/docker.go +++ b/test/e2e/pkg/infra/docker/docker.go @@ -130,21 +130,21 @@ services: // ExecCompose runs a Docker Compose command for a testnet. func ExecCompose(ctx context.Context, dir string, args ...string) error { return exec.Command(ctx, append( - []string{"docker-compose", "-f", filepath.Join(dir, "docker-compose.yml")}, + []string{"docker", "compose", "-f", filepath.Join(dir, "docker-compose.yml")}, args...)...) } // ExecCompose runs a Docker Compose command for a testnet and returns the command's output. func ExecComposeOutput(ctx context.Context, dir string, args ...string) ([]byte, error) { return exec.CommandOutput(ctx, append( - []string{"docker-compose", "-f", filepath.Join(dir, "docker-compose.yml")}, + []string{"docker", "compose", "-f", filepath.Join(dir, "docker-compose.yml")}, args...)...) } // ExecComposeVerbose runs a Docker Compose command for a testnet and displays its output. func ExecComposeVerbose(ctx context.Context, dir string, args ...string) error { return exec.CommandVerbose(ctx, append( - []string{"docker-compose", "-f", filepath.Join(dir, "docker-compose.yml")}, + []string{"docker", "compose", "-f", filepath.Join(dir, "docker-compose.yml")}, args...)...) }