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.
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:
Therefore, the following things need to be updated:
1.23.0(from1.18)golangci-lint:2.16(from1.50.1). If migrating is too hard, then1.64.8should do.depguardlint. It seems the syntax is deprecated and we get lots of error when updating to latest v1 ofgolangci-lint.This should enable us to easily update new dependencies such as #522.