diff options
author | Robert-André Mauchin <zebob.m@gmail.com> | 2021-01-18 02:35:33 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-01-19 17:25:20 +0100 |
commit | 07ad283f686904e5835f621d73ed342ba2a48eb3 (patch) | |
tree | 6f090908fc70a803442628eba9d1b136e0342892 | |
parent | 2c8b5d9165011c4b24b494e661ae60dfc7bb7d1b (diff) |
build(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 4 | ||||
-rw-r--r-- | hugofs/filter_fs.go | 4 | ||||
-rw-r--r-- | hugofs/noop_fs.go | 4 | ||||
-rw-r--r-- | hugofs/slice_fs.go | 4 |
5 files changed, 15 insertions, 3 deletions
@@ -48,7 +48,7 @@ require ( github.com/russross/blackfriday v1.5.3-0.20200218234912-41c5fccfd6f6 github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd github.com/sanity-io/litter v1.3.0 - github.com/spf13/afero v1.4.1 + github.com/spf13/afero v1.5.1 github.com/spf13/cast v1.3.1 github.com/spf13/cobra v1.1.1 github.com/spf13/fsync v0.9.0 @@ -443,8 +443,8 @@ github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9 github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.4.1 h1:asw9sl74539yqavKaglDM5hFpdJVK0Y5Dr/JOgQ89nQ= -github.com/spf13/afero v1.4.1/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.5.1 h1:VHu76Lk0LSP1x254maIu2bplkWpfBWI+B+6fdoZprcg= +github.com/spf13/afero v1.5.1/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= diff --git a/hugofs/filter_fs.go b/hugofs/filter_fs.go index 279a28312..bee4d05d2 100644 --- a/hugofs/filter_fs.go +++ b/hugofs/filter_fs.go @@ -137,6 +137,10 @@ func (fs *FilterFs) Chtimes(n string, a, m time.Time) error { return syscall.EPERM } +func (fs *FilterFs) Chown(n string, uid, gid int) error { + return syscall.EPERM +} + func (fs *FilterFs) LstatIfPossible(name string) (os.FileInfo, bool, error) { fi, b, err := lstatIfPossible(fs.fs, name) if err != nil { diff --git a/hugofs/noop_fs.go b/hugofs/noop_fs.go index c3d2f2da5..12b4e937e 100644 --- a/hugofs/noop_fs.go +++ b/hugofs/noop_fs.go @@ -80,3 +80,7 @@ func (fs noOpFs) Chmod(name string, mode os.FileMode) error { func (fs noOpFs) Chtimes(name string, atime time.Time, mtime time.Time) error { return errNoOp } + +func (fs *noOpFs) Chown(name string, uid int, gid int) error { + return errNoOp +} diff --git a/hugofs/slice_fs.go b/hugofs/slice_fs.go index f1682c1b8..fd442ee8f 100644 --- a/hugofs/slice_fs.go +++ b/hugofs/slice_fs.go @@ -60,6 +60,10 @@ func (fs *SliceFs) Chtimes(n string, a, m time.Time) error { return syscall.EPERM } +func (fs *SliceFs) Chown(n string, uid, gid int) error { + return syscall.EPERM +} + func (fs *SliceFs) LstatIfPossible(name string) (os.FileInfo, bool, error) { fi, _, err := fs.pickFirst(name) if err != nil { |