firecracker-microvm / firecracker-go-sdk

An SDK in Go for the Firecracker microVM API
Apache License 2.0
466 stars 123 forks source link

Update min go version to 1.18 #546

Closed swagatbora90 closed 2 months ago

swagatbora90 commented 2 months ago

Issue #, if available:

Description of changes: Updates min supported Go version from 1.17 to 1.18 to fix go mod tidy errors. Adds CI support for go1.22.

Also, updates pinned version on tc-redirect-tap cni plugin, since the previous pinned version has a transitive dependency on the now deleted github.com/mitchellh/osext package

Previously:

% go mod tidy
go: error loading go 1.16 module graph: github.com/containernetworking/plugins@v1.4.1 requires
    github.com/Microsoft/hcsshim@v0.12.0 requires
    github.com/veraison/go-cose@v1.2.0: reading github.com/veraison/go-cose/go.mod at revision v1.2.0: unknown revision v1.2.0

If reproducibility with go 1.16 is not needed:
    go mod tidy -compat=1.17
For other options, see:
    https://golang.org/doc/modules/pruning

After min version upgrade

% go mod tidy

% echo $?
0

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.