Blame SOURCES/004-xerrors.patch

56d324
diff --git a/go.mod b/go.mod
56d324
index 13f7c66bb..e0615affa 100644
56d324
--- a/go.mod
56d324
+++ b/go.mod
56d324
@@ -77,7 +77,6 @@ require (
56d324
 	golang.org/x/oauth2 v0.0.0-20190319182350-c85d3e98c914
56d324
 	golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
56d324
 	golang.org/x/sys v0.0.0-20190415081028-16da32be82c5 // indirect
56d324
-	golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373
56d324
 	gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
56d324
 	gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
56d324
 	gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e // indirect
56d324
diff --git a/vendor/golang.org/x/xerrors/adaptor_go1_12.go b/vendor/golang.org/x/xerrors/adaptor.go
56d324
similarity index 99%
56d324
rename from vendor/golang.org/x/xerrors/adaptor_go1_12.go
56d324
rename to vendor/golang.org/x/xerrors/adaptor.go
56d324
index 6b9f2f0c7..4317f2483 100644
56d324
--- a/vendor/golang.org/x/xerrors/adaptor_go1_12.go
56d324
+++ b/vendor/golang.org/x/xerrors/adaptor.go
56d324
@@ -2,8 +2,6 @@
56d324
 // Use of this source code is governed by a BSD-style
56d324
 // license that can be found in the LICENSE file.
56d324
 
56d324
-// +build !go1.13
56d324
-
56d324
 package xerrors
56d324
 
56d324
 import (
56d324
diff --git a/vendor/golang.org/x/xerrors/adaptor_go1_13.go b/vendor/golang.org/x/xerrors/adaptor_go1_13.go
56d324
deleted file mode 100644
56d324
index 57f519dc5..000000000
56d324
--- a/vendor/golang.org/x/xerrors/adaptor_go1_13.go
56d324
+++ /dev/null
56d324
@@ -1,55 +0,0 @@
56d324
-// Copyright 2018 The Go Authors. All rights reserved.
56d324
-// Use of this source code is governed by a BSD-style
56d324
-// license that can be found in the LICENSE file.
56d324
-
56d324
-// +build go1.13
56d324
-
56d324
-package xerrors
56d324
-
56d324
-import (
56d324
-	"errors"
56d324
-	"fmt"
56d324
-	"strconv"
56d324
-)
56d324
-
56d324
-// A Frame contains part of a call stack.
56d324
-type Frame = errors.Frame
56d324
-
56d324
-// Caller returns a Frame that describes a frame on the caller's stack.
56d324
-// The argument skip is the number of frames to skip over.
56d324
-// Caller(0) returns the frame for the caller of Caller.
56d324
-var Caller func(skip int) Frame = errors.Caller
56d324
-
56d324
-// FormatError calls the FormatError method of f with an errors.Printer
56d324
-// configured according to s and verb, and writes the result to s.
56d324
-func FormatError(f Formatter, s fmt.State, verb rune) {
56d324
-	// Assuming this function is only called from the Format method, and given
56d324
-	// that FormatError takes precedence over Format, it cannot be called from
56d324
-	// any package that supports errors.Formatter. It is therefore safe to
56d324
-	// disregard that State may be a specific printer implementation and use one
56d324
-	// of our choice instead.
56d324
-
56d324
-	width, okW := s.Width()
56d324
-	prec, okP := s.Precision()
56d324
-
56d324
-	// Construct format string from State s.
56d324
-	format := []byte{'%'}
56d324
-	if s.Flag('-') {
56d324
-		format = append(format, '-')
56d324
-	}
56d324
-	if s.Flag('+') {
56d324
-		format = append(format, '+')
56d324
-	}
56d324
-	if s.Flag(' ') {
56d324
-		format = append(format, ' ')
56d324
-	}
56d324
-	if okW {
56d324
-		format = strconv.AppendInt(format, int64(width), 10)
56d324
-	}
56d324
-	if okP {
56d324
-		format = append(format, '.')
56d324
-		format = strconv.AppendInt(format, int64(prec), 10)
56d324
-	}
56d324
-	format = append(format, string(verb)...)
56d324
-	fmt.Fprintf(s, string(format), f)
56d324
-}
56d324
diff --git a/vendor/golang.org/x/xerrors/format_go1_12.go b/vendor/golang.org/x/xerrors/format.go
56d324
similarity index 98%
56d324
rename from vendor/golang.org/x/xerrors/format_go1_12.go
56d324
rename to vendor/golang.org/x/xerrors/format.go
56d324
index ba856feab..1bc9c26b9 100644
56d324
--- a/vendor/golang.org/x/xerrors/format_go1_12.go
56d324
+++ b/vendor/golang.org/x/xerrors/format.go
56d324
@@ -2,8 +2,6 @@
56d324
 // Use of this source code is governed by a BSD-style
56d324
 // license that can be found in the LICENSE file.
56d324
 
56d324
-// +build !go1.13
56d324
-
56d324
 package xerrors
56d324
 
56d324
 // A Formatter formats error messages.
56d324
diff --git a/vendor/golang.org/x/xerrors/format_go1_13.go b/vendor/golang.org/x/xerrors/format_go1_13.go
56d324
deleted file mode 100644
56d324
index 95c65968b..000000000
56d324
--- a/vendor/golang.org/x/xerrors/format_go1_13.go
56d324
+++ /dev/null
56d324
@@ -1,19 +0,0 @@
56d324
-// Copyright 2018 The Go Authors. All rights reserved.
56d324
-// Use of this source code is governed by a BSD-style
56d324
-// license that can be found in the LICENSE file.
56d324
-
56d324
-// +build go1.13
56d324
-
56d324
-package xerrors
56d324
-
56d324
-import "errors"
56d324
-
56d324
-// A Formatter formats error messages.
56d324
-type Formatter = errors.Formatter
56d324
-
56d324
-// A Printer formats error messages.
56d324
-//
56d324
-// The most common implementation of Printer is the one provided by package fmt
56d324
-// during Printf (as of Go 1.13). Localization packages such as golang.org/x/text/message
56d324
-// typically provide their own implementations.
56d324
-type Printer = errors.Printer
56d324
diff --git a/vendor/golang.org/x/xerrors/frame_go1_12.go b/vendor/golang.org/x/xerrors/frame.go
56d324
similarity index 98%
56d324
rename from vendor/golang.org/x/xerrors/frame_go1_12.go
56d324
rename to vendor/golang.org/x/xerrors/frame.go
56d324
index 6740f7fa6..0de628ec5 100644
56d324
--- a/vendor/golang.org/x/xerrors/frame_go1_12.go
56d324
+++ b/vendor/golang.org/x/xerrors/frame.go
56d324
@@ -2,8 +2,6 @@
56d324
 // Use of this source code is governed by a BSD-style
56d324
 // license that can be found in the LICENSE file.
56d324
 
56d324
-// +build !go1.13
56d324
-
56d324
 package xerrors
56d324
 
56d324
 import (