Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package_managers: gomod: Bump the max go version to 1.24
Go 1.24 has been released [1]. No tangible impact on our logic thankfully. The only relevant section for us is [2] which adds a new 'tool' subcommand: - we don't care about the subcommand per-se - tool can fetch/install additional development tools, e.g. stringer - tool modifies user's go.mod file accordingly with the relevant directives - development tools are prefetched just like any other modules \o/ Here's a snippet from using an external (i.e. not Go built-in) tools experiment that makes use of the github.com/vektra/mockery/v2 tool: $ go get -tool github.com/vektra/mockery/v2 $ go mod tidy $ git diff #go.mod ... +require ( ... + github.com/vektra/mockery/v2 v2.52.2 // indirect ... +) + +tool ( + github.com/vektra/mockery/v2 +) #go.sum ... +github.com/vektra/mockery/v2 v2.52.2 h1:<checksum> +github.com/vektra/mockery/v2 v2.52.2/go.mod h1:<checksum> $ cachi2 fetch-dependencies gomod $ find ./cachi2-output | grep mockery ./cachi2-output/deps/gomod/pkg/mod/cache/download/github.com/vektra/mockery ./cachi2-output/deps/gomod/pkg/mod/cache/download/github.com/vektra/mockery/v2 ... $ cachi2 generate-env --format env cachi2-output > cachi2.env $ nmcli dev dis <iface> $ ping 8.8.8.8 ping: connect: Network is unreachable $ source cachi2.env $ go tool mockery --help Generate mock objects for your Golang interfaces Usage: mockery [flags] mockery [command] ... Since this is a trivial version bump, update the docs at the same time. [1] https://tip.golang.org/doc/go1.24 [2] https://tip.golang.org/doc/go1.24#go-command Signed-off-by: Erik Skultety <eskultet@redhat.com>
- Loading branch information