Files
gvisor/pkg/errors/linuxerr/BUILD
T
Zach Koopmans b822923b70 [syserr] Covert all linuxerr returns to error type.
Change the linuxerr.ErrorFromErrno to return an error type and not
a *errors.Error type. The latter results in problems comparing to nil
as <nil><nil> != <nil><*errors.Error>.

In a follow up, there will be a change to remove *errors.Error.Errno(),
which will also encourage users to not use Errnos to reference linuxerr.

PiperOrigin-RevId: 406444419
2021-10-29 14:03:16 -07:00

28 lines
551 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(licenses = ["notice"])
go_library(
name = "linuxerr",
srcs = [
"internal.go",
"linuxerr.go",
],
visibility = ["//visibility:public"],
deps = [
"//pkg/abi/linux/errno",
"//pkg/errors",
"@org_golang_x_sys//unix:go_default_library",
],
)
go_test(
name = "linuxerr_test",
srcs = ["linuxerr_test.go"],
deps = [
":linuxerr",
"//pkg/errors",
"@org_golang_x_sys//unix:go_default_library",
],
)