Remove deprecated libraries, update other libs, add ci v1.23 (#8118)

This commit is contained in:
Ricardo Katz 2022-01-09 21:29:12 -03:00 committed by GitHub
parent c917ffacd2
commit 38c73233f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 97 additions and 311 deletions

View file

@ -17,9 +17,8 @@ limitations under the License.
package errors
import (
"errors"
"fmt"
"github.com/pkg/errors"
)
var (
@ -50,7 +49,7 @@ func NewInvalidAnnotationContent(name string, val interface{}) error {
// NewLocationDenied returns a new LocationDenied error
func NewLocationDenied(reason string) error {
return LocationDenied{
Reason: errors.Errorf("Location denied, reason: %v", reason),
Reason: fmt.Errorf("Location denied, reason: %v", reason),
}
}
@ -109,5 +108,5 @@ func New(m string) error {
// Errorf formats according to a format specifier and returns the string
// as a value that satisfies error.
func Errorf(format string, args ...interface{}) error {
return errors.Errorf(format, args...)
return fmt.Errorf(format, args...)
}