$ go mod edit -dropexclude=github.com/stretchr/testify@v1.8.0 -exclude=github.com/stretchr/testify@v1.8.4
$ go mod tidy
See https://github.com/stretchr/objx/pull/140
In go.mod exclude the old version of testify brought by objx. This
allows to break the dependency cycle and completely remove the
dependency link to old versions of dependencies (some of which had
security issues).
Closes#1292.
go mod edit -exclude=github.com/stretchr/testify@v1.8.2 && go.mod
The `go` directive in go.mod is meant to indicate the minimum supported
version.
See: https://go.dev/doc/modules/gomod-ref#go
Signed-off-by: SuperQ <superq@gmail.com>
* EqualExportedValues: Handle pointer and slice fields
* Update assert/assertions.go
Co-authored-by: Michael Pu <michael.pu123@gmail.com>
* Reduce redundant calls to 'copyExportedFields'
* Update comments
* Add support for maps
* Update Go version support to 1.19 and onward
* Re-generate after rebasing
---------
Co-authored-by: Michael Pu <michael.pu123@gmail.com>
What
===
Add `go.mod` and `go.sum`, using `Go 1.11`.
Why
===
Now that golang/go#24301 has been accepted, lets start using go.mod files
alongside Godep, and keep the two in sync.
Notes
===
There are no changes required to testify to support go.mod. The files were
generated by running `go build` and `go mod tidy.
Merging
===
This PR is intended to be merged after #659 which adds Go1.11 to the list of
supported builds.