sourcegraph/dev/src-expose
Varun Gandhi 2955bb6cfb
chore: Change errors.HasType to respect multi-errors (#63024)
With this patch, the `errors.HasType` API behaves similar to `Is` and `As`,
where it checks the full error tree instead of just checking a linearized version
of it, as cockroachdb/errors's `HasType` implementation does not respect
multi-errors.

As a consequence, a bunch of relationships between HasType and Is/As that
you'd intuitively expect to hold are now true; see changes to `invariants_test.go`.
2024-06-06 13:02:14 +00:00
..
examples
.gitignore
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
build.sh
docker-publish.sh
Dockerfile ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
entry.sh
main_test.go
main.go chore: Change errors.HasType to respect multi-errors (#63024) 2024-06-06 13:02:14 +00:00
release.sh Release arm versions of src-expose (#26265) 2021-10-19 15:11:36 +02:00
serve_test.go Replace os.MkdirTemp in tests with t.TempDir() (#34590) 2022-04-27 16:08:29 +00:00
serve.go all: use any instead of interface{} (#35102) 2022-05-09 10:59:39 +02:00
snapshot.go errors: Introduce internal package (#30558) 2022-02-07 15:03:45 +00:00