-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
go-spew can panic when trying to print certain types of values, there are open issues about this on their GitHub repository.
go-spew is unfortunately unmaintained, we cannot expect a fix any time soon.
vendoring go-spew, the same way we vendored go-difflib would help us to remove bugs, but also keep the current pretty print lib without moving to something else.
Note: we have already vendored the go-difflib we are using to compare the go-spew results.
Testify is widely used in Go community. We cannot guess the unpredictable effects it could lead to change the pretty print lib.
See #1061
Related issues
-
Panic in assert/require.Equal when calling into go-spew #480
-
assert.Equal panic on diff unexported map with array as key #1813
-
maybe others
It would also help to address old issues because we were depending on go-spew, without a chance so see changes being merged upstream
-
time.Time rendering
-
Diffs on structs with nested time.Time objects produce hard to read diffs #1078
-
map