Skip to content

Commit

Permalink
ci: Bump Go to 1.22.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Nov 15, 2024
1 parent 9233cc5 commit 147ddde
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
go-version: "1.22.x"
cache: false
- name: Install gitlint
run: |
Expand All @@ -63,7 +63,7 @@ jobs:
# 'make lint-go'.
uses: golangci/[email protected]
with:
version: v1.55
version: v1.56
# Always run this step so that all linting errors can be seen at once.
if: always()
- name: Ensure a clean code checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
go-version: "1.22.x"
- name: Cache Go dependencies
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
go-version: "1.22.x"
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ linters-settings:
- github.com/zondax/ledger-go
- github.com/foxboron/go-uefi/authenticode
- golang.org/x/text
- gopkg.in/yaml.v3
exhaustive:
# Switch statements are to be considered exhaustive if a 'default' case is
# present, even if all enum members aren't listed in the switch.
Expand Down
2 changes: 1 addition & 1 deletion cmd/paratime/denomination/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var removeDenomCmd = &cobra.Command{
Use: "remove <network> <paratime> <denomination>",
Short: "Remove denomination",
Args: cobra.ExactArgs(3),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
networkArg, ptArg, denomArg := args[0], args[1], args[2]

Expand Down
2 changes: 1 addition & 1 deletion cmd/paratime/denomination/set-native.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var setNativeDenomCmd = &cobra.Command{
Use: "set-native <network> <paratime> <symbol> <number_of_decimals>",
Short: "Set native denomination",
Args: cobra.ExactArgs(4),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
networkArg, ptArg, symbolArg, decimalsArg := args[0], args[1], args[2], args[3]

Expand Down
2 changes: 1 addition & 1 deletion cmd/paratime/denomination/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
Use: "set <network> <paratime> <denomination> <number_of_decimals> [--symbol <symbol>]",
Short: "Set denomination",
Args: cobra.ExactArgs(4),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
networkArg, ptArg, denomArg, decimalsArg := args[0], args[1], args[2], args[3]

Expand Down
2 changes: 1 addition & 1 deletion wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func Load(kind string) (Factory, error) {
// AvailableKinds returns all of the available account factories.
func AvailableKinds() []Factory {
var kinds []Factory
registeredFactories.Range(func(key, value interface{}) bool {
registeredFactories.Range(func(_, value interface{}) bool {
kinds = append(kinds, value.(Factory))
return true
})
Expand Down

0 comments on commit 147ddde

Please sign in to comment.