linkerd2/cni-plugin
Oliver Gould f5876c2a98
go: Enable `errorlint` checking (#7885)
Since Go 1.13, errors may "wrap" other errors. [`errorlint`][el] checks
that error formatting and inspection is wrapping-aware.

This change enables `errorlint` in golangci-lint and updates all error
handling code to pass the lint. Some comparisons in tests have been left
unchanged (using `//nolint:errorlint` comments).

[el]: https://github.com/polyfloyd/go-errorlint

Signed-off-by: Oliver Gould <ver@buoyant.io>
2022-02-16 18:32:19 -07:00
..
deployment Enable readOnlyFileSystem for cni plugin chart (#6469) 2021-07-21 14:45:58 -05:00
test Fix CNI integration test (#7660) 2022-01-21 14:31:32 -05:00
Dockerfile build: upgrade to Go 1.17 (#7371) 2021-11-30 15:36:11 -05:00
main.go go: Enable `errorlint` checking (#7885) 2022-02-16 18:32:19 -07:00