Skip to content

Commit ce68537

Browse files
committed
errdefs: denote deprecation as a godoc comment
golangci-lint can now raise an error when the deprecated errdefs package is used: > SA1019: "github.com/containerd/containerd/errdefs" is deprecated: > use [github.com/containerd/errdefs]. (staticcheck) Signed-off-by: Akihiro Suda <[email protected]> (cherry picked from commit c7d5e43) Signed-off-by: Akihiro Suda <[email protected]>
1 parent b61b37e commit ce68537

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

errdefs/errdefs_deprecated.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
//
2525
// The functions ToGRPC and FromGRPC can be used to map server-side and
2626
// client-side errors to the correct types.
27+
//
28+
// Deprecated: use [github.com/containerd/errdefs].
2729
package errdefs
2830

2931
import (

0 commit comments

Comments
 (0)