Skip to content

Update Go version to 1.23 and golangci-lint to v2 #523

Open
@edif2008

Description

@edif2008

Summary

We need to keep the shell plugin system to the latest version of the tools used.

Simply updating the Go version will cause the lint job (example) to fail with the following error:

level=error msg="Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: errors parsing go.mod:\n/home/runner/work/shell-plugins/shell-plugins/go.mod:3: invalid go version '1.23.0': must match format 1.23\n"

Therefore, the following things need to be updated:

  • Go version: 1.23.0 (from 1.18)
  • golangci-lint: 2.16 (from 1.50.1). If migrating is too hard, then 1.64.8 should do.
    • We need to update the configuration for the depguard lint. It seems the syntax is deprecated and we get lots of error when updating to latest v1 of golangci-lint.
  • Update actions in our job pipelines to the latest major versions.

This should enable us to easily update new dependencies such as #522.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions