Skip to content

Commit 3e4ca2c

Browse files
committed
ci: Bump Go to 1.22.x
1 parent 64c9753 commit 3e4ca2c

Some content is hidden

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

58 files changed

+81
-80
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/allow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var allowCmd = &cobra.Command{
1717
Use: "allow <beneficiary> <amount>",
1818
Short: "Configure beneficiary allowance",
1919
Args: cobra.ExactArgs(2),
20-
Run: func(cmd *cobra.Command, args []string) {
20+
Run: func(_ *cobra.Command, args []string) {
2121
cfg := cliConfig.Global()
2222
npa := common.GetNPASelection(cfg)
2323
txCfg := common.GetTransactionConfig()

cmd/account/amend_commission_schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
amendCommissionScheduleCmd = &cobra.Command{
2424
Use: "amend-commission-schedule",
2525
Short: "Amend the validator's commission schedule",
26-
Run: func(cmd *cobra.Command, args []string) {
26+
Run: func(_ *cobra.Command, _ []string) {
2727
cfg := cliConfig.Global()
2828
npa := common.GetNPASelection(cfg)
2929
txCfg := common.GetTransactionConfig()

cmd/account/burn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var burnCmd = &cobra.Command{
1717
Use: "burn <amount>",
1818
Short: "Burn given amount of tokens",
1919
Args: cobra.ExactArgs(1),
20-
Run: func(cmd *cobra.Command, args []string) {
20+
Run: func(_ *cobra.Command, args []string) {
2121
cfg := cliConfig.Global()
2222
npa := common.GetNPASelection(cfg)
2323
txCfg := common.GetTransactionConfig()

cmd/account/delegate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var delegateCmd = &cobra.Command{
2121
Use: "delegate <amount> <to>",
2222
Short: "Delegate given amount of tokens to an entity",
2323
Args: cobra.ExactArgs(2),
24-
Run: func(cmd *cobra.Command, args []string) {
24+
Run: func(_ *cobra.Command, args []string) {
2525
cfg := cliConfig.Global()
2626
npa := common.GetNPASelection(cfg)
2727
txCfg := common.GetTransactionConfig()

cmd/account/deposit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var depositCmd = &cobra.Command{
2222
Use: "deposit <amount> [to]",
2323
Short: "Deposit tokens into ParaTime",
2424
Args: cobra.RangeArgs(1, 2),
25-
Run: func(cmd *cobra.Command, args []string) {
25+
Run: func(_ *cobra.Command, args []string) {
2626
cfg := cliConfig.Global()
2727
npa := common.GetNPASelection(cfg)
2828
txCfg := common.GetTransactionConfig()

cmd/account/entity.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
entityInitCmd = &cobra.Command{
3131
Use: "init",
3232
Short: "Init an empty entity file",
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

@@ -75,7 +75,7 @@ var (
7575
Short: "Register or update account entity in registry",
7676
Long: "Register your account and nodes as entity in the network registry or update the existing entry.",
7777
Args: cobra.ExactArgs(1),
78-
Run: func(cmd *cobra.Command, args []string) {
78+
Run: func(_ *cobra.Command, args []string) {
7979
cfg := cliConfig.Global()
8080
npa := common.GetNPASelection(cfg)
8181
txCfg := common.GetTransactionConfig()
@@ -135,7 +135,7 @@ var (
135135
Use: "deregister",
136136
Short: "Remove account entity from registry",
137137
Args: cobra.NoArgs,
138-
Run: func(cmd *cobra.Command, args []string) {
138+
Run: func(_ *cobra.Command, args []string) {
139139
cfg := cliConfig.Global()
140140
npa := common.GetNPASelection(cfg)
141141
txCfg := common.GetTransactionConfig()
@@ -170,7 +170,7 @@ var (
170170
Short: "Update account entity metadata in registry",
171171
Long: "Update your account entity metadata in the network registry.",
172172
Args: cobra.ExactArgs(1),
173-
Run: func(cmd *cobra.Command, args []string) {
173+
Run: func(_ *cobra.Command, args []string) {
174174
cfg := cliConfig.Global()
175175
npa := common.GetNPASelection(cfg)
176176

0 commit comments

Comments
 (0)