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 e7a5f83 commit daa5450
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 17 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/account/show/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
Short: "Show balance and other information",
Aliases: []string{"s"},
Args: cobra.MaximumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
npa := common.GetNPASelection(cfg)

Expand Down
2 changes: 1 addition & 1 deletion cmd/network/governance/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var govCastVoteCmd = &cobra.Command{
Use: "cast-vote <proposal-id> { yes | no | abstain }",
Short: "Cast a governance vote on a proposal",
Args: cobra.ExactArgs(2),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
npa := common.GetNPASelection(cfg)
txCfg := common.GetTransactionConfig()
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 cmd/paratime/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var registerCmd = &cobra.Command{
Use: "register <descriptor.json>",
Short: "Register a new ParaTime or update an existing one",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
npa := common.GetNPASelection(cfg)
txCfg := common.GetTransactionConfig()
Expand Down
2 changes: 1 addition & 1 deletion cmd/paratime/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var removeCmd = &cobra.Command{
Aliases: []string{"rm"},
Short: "Remove an existing ParaTime",
Args: cobra.ExactArgs(2),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
network, name := args[0], args[1]

Expand Down
2 changes: 1 addition & 1 deletion cmd/paratime/set_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var setDefaultCmd = &cobra.Command{
Use: "set-default <network> <name>",
Short: "Sets the given ParaTime as the default ParaTime for the given network",
Args: cobra.ExactArgs(2),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := cliConfig.Global()
network, name := args[0], args[1]

Expand Down
2 changes: 1 addition & 1 deletion cmd/rofl/build/sgx.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
Use: "sgx",
Short: "Build an SGX-based Rust ROFL application",
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, _ []string) {
cfg := cliConfig.Global()
npa := common.GetNPASelection(cfg)

Expand Down
2 changes: 1 addition & 1 deletion cmd/rofl/build/tdx.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var (
Use: "tdx",
Short: "Build a TDX-based ROFL application",
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, _ []string) {
cfg := cliConfig.Global()
npa := common.GetNPASelection(cfg)

Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var createCmd = &cobra.Command{
Use: "create <name>",
Short: "Create a new account",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := config.Global()
name := args[0]

Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet/set_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var setDefaultCmd = &cobra.Command{
Use: "set-default <name>",
Short: "Sets the given account as the default account",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
Run: func(_ *cobra.Command, args []string) {
cfg := config.Global()
name := args[0]

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 daa5450

Please sign in to comment.