Skip to content

Commit

Permalink
Merge pull request #308 from terra-money/upgrade/sdk50
Browse files Browse the repository at this point in the history
Upgrade/sdk50
  • Loading branch information
javiersuweijie authored Feb 19, 2024
2 parents 8439e9f + 77fb4f0 commit 93675c5
Show file tree
Hide file tree
Showing 78 changed files with 3,387 additions and 2,817 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.0
go-version: 1.21.0
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.52.2
version: v1.54.2
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.0
go-version: 1.21.0
- name: Checkout code
uses: actions/checkout@v3
- name: Test
Expand Down
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ run:
linters:
disable-all: true
enable:
- depguard
- dogsled
- errcheck
- exportloopref
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ format-tools:
go install mvdan.cc/[email protected]
go install github.com/client9/misspell/cmd/[email protected]
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2

lint: format-tools
golangci-lint run
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" -not -path "*pb.gw.go" | xargs gofumpt -d

lint-docker:
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.52.2-alpine golangci-lint run --timeout 10m
docker run --rm -v $(PWD):/app -w /app golangci/golangci-lint:v1.54.2-alpine golangci-lint run --timeout 10m

format: format-tools
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" -not -path "*pb.gw.go" | xargs gofumpt -w
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Compatibility matrix:

| Release | Branch | CosmosSDK |
|---------|----------------|-----------|
| v0.4.0 | release/v0.4.x | 0.50 |
| v0.3.0 | release/v0.3.x | 0.47 |
| v0.2.0 | release/v0.2.x | 0.47 |
| v0.1.0 | release/v0.1.x | 0.46 |

Expand All @@ -71,7 +73,7 @@ For an in-depth guide on integrating `x/alliance`, visit the [Alliance Module In

The following sections are for developers working on the `x/alliance` module.

This project uses [Go v1.19](https://go.dev/dl/).
This project uses [Go v1.21](https://go.dev/dl/).

To build a ready-to-use binary, run the following:

Expand Down
Loading

0 comments on commit 93675c5

Please sign in to comment.