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 file
import (
"fmt"
"os"
"github.com/pkg/errors"
)
const (
@ -50,13 +49,13 @@ func CreateRequiredDirectories() error {
if os.IsNotExist(err) {
err = os.MkdirAll(directory, ReadWriteByUser)
if err != nil {
return errors.Wrapf(err, "creating directory '%v'", directory)
return fmt.Errorf("creating directory %s: %w", directory, err)
}
continue
}
return errors.Wrapf(err, "checking directory %v", directory)
return fmt.Errorf("checking directory %s: %w", directory, err)
}
}