Commit Graph

4 Commits

Author SHA1 Message Date
Justin Chadwell
51aca40cba solver: use errors.Is when checking context.Cause()
Since the change to replace uses of context.WithCancel with
WithCancelCause, we've also begun wrapping all cancellations using
errors.WithStack. This means that these would not directly match
context.Canceled, so we need to make sure to use errors.Is.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-01-25 12:57:48 +00:00
Tonis Tiigi
8a2a3e83ec replace context.WithCancel with WithCancelCause
Keep stack traces for cancellation errors where possible.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2023-12-06 22:15:06 -08:00
Tonis Tiigi
6644f165cc fix cancellation error not being detected and erroneously cached
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-06-23 08:25:21 -07:00
Tonis Tiigi
e46cfab9fb fix invalid cancellation errors on pull
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-01 00:27:31 -08:00