cockroachdb / errors

Go error library with error portability over the network
Apache License 2.0
2.04k stars 66 forks source link

Make multi-cause error support compatible with go versions before 1.20 #122

Closed dhartunian closed 11 months ago

dhartunian commented 11 months ago

This commit also reverts go.mod to use 1.18 to match the state of the codebase from before the go 1.20 upgrade.

This allows older codebases to upgrade to a version of this library that can encode/decode multi-cause errors from newer versions without completely discarding the child cause error info.


This change is Reviewable

dhartunian commented 11 months ago

Closing since I made a mistake. We need to revert to go 1.17, not 1.18