Skip to content

Commit daa5450

Browse files
committed
ci: Bump Go to 1.22.x
1 parent e7a5f83 commit daa5450

File tree

17 files changed

+18
-17
lines changed

17 files changed

+18
-17
lines changed

.github/workflows/ci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up Go
4242
uses: actions/setup-go@v5
4343
with:
44-
go-version: "1.21.x"
44+
go-version: "1.22.x"
4545
cache: false
4646
- name: Install gitlint
4747
run: |
@@ -63,7 +63,7 @@ jobs:
6363
# 'make lint-go'.
6464
uses: golangci/[email protected]
6565
with:
66-
version: v1.55
66+
version: v1.56
6767
# Always run this step so that all linting errors can be seen at once.
6868
if: always()
6969
- name: Ensure a clean code checkout

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Go
3030
uses: actions/setup-go@v5
3131
with:
32-
go-version: "1.21.x"
32+
go-version: "1.22.x"
3333
- name: Cache Go dependencies
3434
uses: actions/cache@v4
3535
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: "1.21.x"
25+
go-version: "1.22.x"
2626
- name: Install GoReleaser
2727
uses: goreleaser/goreleaser-action@v5
2828
with:

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ linters-settings:
7272
- github.com/zondax/ledger-go
7373
- github.com/foxboron/go-uefi/authenticode
7474
- golang.org/x/text
75+
- gopkg.in/yaml.v3
7576
exhaustive:
7677
# Switch statements are to be considered exhaustive if a 'default' case is
7778
# present, even if all enum members aren't listed in the switch.

cmd/account/show/show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
Short: "Show balance and other information",
3131
Aliases: []string{"s"},
3232
Args: cobra.MaximumNArgs(1),
33-
Run: func(cmd *cobra.Command, args []string) {
33+
Run: func(_ *cobra.Command, args []string) {
3434
cfg := cliConfig.Global()
3535
npa := common.GetNPASelection(cfg)
3636

cmd/network/governance/vote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var govCastVoteCmd = &cobra.Command{
1818
Use: "cast-vote <proposal-id> { yes | no | abstain }",
1919
Short: "Cast a governance vote on a proposal",
2020
Args: cobra.ExactArgs(2),
21-
Run: func(cmd *cobra.Command, args []string) {
21+
Run: func(_ *cobra.Command, args []string) {
2222
cfg := cliConfig.Global()
2323
npa := common.GetNPASelection(cfg)
2424
txCfg := common.GetTransactionConfig()

cmd/paratime/denomination/remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var removeDenomCmd = &cobra.Command{
1515
Use: "remove <network> <paratime> <denomination>",
1616
Short: "Remove denomination",
1717
Args: cobra.ExactArgs(3),
18-
Run: func(cmd *cobra.Command, args []string) {
18+
Run: func(_ *cobra.Command, args []string) {
1919
cfg := cliConfig.Global()
2020
networkArg, ptArg, denomArg := args[0], args[1], args[2]
2121

cmd/paratime/denomination/set-native.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var setNativeDenomCmd = &cobra.Command{
1515
Use: "set-native <network> <paratime> <symbol> <number_of_decimals>",
1616
Short: "Set native denomination",
1717
Args: cobra.ExactArgs(4),
18-
Run: func(cmd *cobra.Command, args []string) {
18+
Run: func(_ *cobra.Command, args []string) {
1919
cfg := cliConfig.Global()
2020
networkArg, ptArg, symbolArg, decimalsArg := args[0], args[1], args[2], args[3]
2121

cmd/paratime/denomination/set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919
Use: "set <network> <paratime> <denomination> <number_of_decimals> [--symbol <symbol>]",
2020
Short: "Set denomination",
2121
Args: cobra.ExactArgs(4),
22-
Run: func(cmd *cobra.Command, args []string) {
22+
Run: func(_ *cobra.Command, args []string) {
2323
cfg := cliConfig.Global()
2424
networkArg, ptArg, denomArg, decimalsArg := args[0], args[1], args[2], args[3]
2525

cmd/paratime/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var registerCmd = &cobra.Command{
1818
Use: "register <descriptor.json>",
1919
Short: "Register a new ParaTime or update an existing one",
2020
Args: cobra.ExactArgs(1),
21-
Run: func(cmd *cobra.Command, args []string) {
21+
Run: func(_ *cobra.Command, args []string) {
2222
cfg := cliConfig.Global()
2323
npa := common.GetNPASelection(cfg)
2424
txCfg := common.GetTransactionConfig()

0 commit comments

Comments
 (0)