New Upstream Release - golang-golang-x-xerrors

Ready changes

Summary

Merged new upstream version: 0.0~git20220907.04be3eb (was: 0.0~git20200804.5ec99f8).

Resulting package

Built on 2022-12-14T03:06 (took 4m32s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases golang-golang-x-xerrors-dev

Lintian Result

Diff

diff --git a/debian/changelog b/debian/changelog
index ad1b301..66cbae6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-golang-x-xerrors (0.0~git20220907.04be3eb-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Wed, 14 Dec 2022 03:02:09 -0000
+
 golang-golang-x-xerrors (0.0~git20200804.5ec99f8-1) unstable; urgency=medium
 
   [ Roger Shimizu ]
diff --git a/doc.go b/doc.go
index eef99d9..2ef99f5 100644
--- a/doc.go
+++ b/doc.go
@@ -5,7 +5,8 @@
 // Package xerrors implements functions to manipulate errors.
 //
 // This package is based on the Go 2 proposal for error values:
-//   https://golang.org/design/29934-error-values
+//
+//	https://golang.org/design/29934-error-values
 //
 // These functions were incorporated into the standard library's errors package
 // in Go 1.13:
diff --git a/fmt.go b/fmt.go
index 829862d..27a5d70 100644
--- a/fmt.go
+++ b/fmt.go
@@ -33,6 +33,9 @@ const percentBangString = "%!"
 // It is invalid to include more than one %w verb or to supply it with an
 // operand that does not implement the error interface. The %w verb is otherwise
 // a synonym for %v.
+//
+// Note that as of Go 1.13, the fmt.Errorf function will do error formatting,
+// but it will not capture a stack backtrace.
 func Errorf(format string, a ...interface{}) error {
 	format = formatPlusW(format)
 	// Support a ": %[wsv]" suffix, which works well with xerrors.Formatter.
diff --git a/fmt_test.go b/fmt_test.go
index 1e3c060..99d945f 100644
--- a/fmt_test.go
+++ b/fmt_test.go
@@ -485,7 +485,7 @@ type adapted struct {
 	err error
 }
 
-func (e adapted) Error() string { return string(e.msg) }
+func (e adapted) Error() string { return e.msg }
 
 func (e adapted) Format(s fmt.State, verb rune) {
 	xerrors.FormatError(e, s, verb)
diff --git a/go.mod b/go.mod
index 870d4f6..9235759 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
 module golang.org/x/xerrors
 
-go 1.11
+go 1.17
diff --git a/wrap.go b/wrap.go
index 9a3b510..9842758 100644
--- a/wrap.go
+++ b/wrap.go
@@ -35,6 +35,8 @@ func (e noWrapper) FormatError(p Printer) (next error) {
 
 // Unwrap returns the result of calling the Unwrap method on err, if err implements
 // Unwrap. Otherwise, Unwrap returns nil.
+//
+// Deprecated: As of Go 1.13, use errors.Unwrap instead.
 func Unwrap(err error) error {
 	u, ok := err.(Wrapper)
 	if !ok {
@@ -47,6 +49,8 @@ func Unwrap(err error) error {
 //
 // An error is considered to match a target if it is equal to that target or if
 // it implements a method Is(error) bool such that Is(target) returns true.
+//
+// Deprecated: As of Go 1.13, use errors.Is instead.
 func Is(err, target error) bool {
 	if target == nil {
 		return err == target
@@ -77,6 +81,8 @@ func Is(err, target error) bool {
 //
 // The As method should set the target to its value and return true if err
 // matches the type to which target points.
+//
+// Deprecated: As of Go 1.13, use errors.As instead.
 func As(err error, target interface{}) bool {
 	if target == nil {
 		panic("errors: target cannot be nil")
diff --git a/wrap_113_test.go b/wrap_113_test.go
index 25c3d80..48fedb5 100644
--- a/wrap_113_test.go
+++ b/wrap_113_test.go
@@ -2,7 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//+build go1.13
+//go:build go1.13
+// +build go1.13
 
 package xerrors_test
 

Debdiff

File lists identical (after any substitutions)

No differences were encountered in the control files

More details

Full run details