shell-plugins icon indicating copy to clipboard operation
shell-plugins copied to clipboard

Update Go version to 1.23 and golangci-lint to v2

Open edif2008 opened this issue 8 months ago • 0 comments

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.

edif2008 avatar May 20 '25 10:05 edif2008