Specifying the patch version in the Go module means that any other modules using this need to comply. This has caused our go.mod file to change. While is not necessarily bad, we only use this library for testing so it feels wrong to have to pin our own version to match this module.
By only specifying the major+minor version in the go.mod file, we let the Go toolchain pick the appropriate version that is available when building the binary but requiring at least the 1.22 version.
Specifying the patch version in the Go module means that any other modules using this need to comply. This has caused our
go.mod
file to change. While is not necessarily bad, we only use this library for testing so it feels wrong to have to pin our own version to match this module.By only specifying the major+minor version in the
go.mod
file, we let the Go toolchain pick the appropriate version that is available when building the binary but requiring at least the1.22
version.