Skip to content

Commit

Permalink
use go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Mar 29, 2024
1 parent abee0c6 commit 8a89ab8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- uses: actions/checkout@v3
with:
submodules: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- name: Checkout Comment PR Branch
uses: actions/checkout@v3
if: github.event_name == 'issue_comment'
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- name: install runsim
run: |
export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected]
Expand All @@ -200,7 +200,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- name: Checkout Comment PR Branch
uses: actions/checkout@v3
if: github.event_name == 'issue_comment'
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- name: Checkout Comment PR Branch
uses: actions/checkout@v3
if: github.event_name == 'issue_comment'
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- name: Checkout Comment PR Branch
uses: actions/checkout@v3
if: github.event_name == 'issue_comment'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- name: Normal check out code
uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- uses: actions/checkout@v3
with:
submodules: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
go-version: 1.21
- uses: actions/checkout@v3
with:
submodules: true
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ buildGoApplication rec {
name = "src";
src = lib.sourceByRegex ./. src_regexes;
};
go = buildPackages.go_1_22;
go = buildPackages.go_1_21;
modules = ./gomod2nix.toml;
subPackages = [ "cmd/chain-maind" ];
buildFlags = lib.optionalString coverage "-cover";
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/crypto-org-chain/chain-main/v4

go 1.22

toolchain go1.22.0
go 1.21

require (
cosmossdk.io/errors v1.0.0-beta.7
Expand Down

0 comments on commit 8a89ab8

Please sign in to comment.