mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
b822923b70
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
28 lines
551 B
Python
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",
|
|
],
|
|
)
|