Skip to content

Commit 03afef5

Browse files
authored
Merge pull request moby#5461 from tonistiigi/vendor-fsutil-20241018
vendor: update fsutil to 397af530
2 parents 92e37b2 + 6303571 commit 03afef5

File tree

7 files changed

+47
-25
lines changed

7 files changed

+47
-25
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ require (
6969
github.com/sirupsen/logrus v1.9.3
7070
github.com/spdx/tools-golang v0.5.3
7171
github.com/stretchr/testify v1.9.0
72-
github.com/tonistiigi/fsutil v0.0.0-20241003195857-3f140a1299b0
72+
github.com/tonistiigi/fsutil v0.0.0-20241028165955-397af5306b5c
7373
github.com/tonistiigi/go-actions-cache v0.0.0-20240327122527-58651d5e11d6
7474
github.com/tonistiigi/go-archvariant v1.0.0
7575
github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
383383
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
384384
github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205 h1:eUk79E1w8yMtXeHSzjKorxuC8qJOnyXQnLaJehxpJaI=
385385
github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205/go.mod h1:3Iuxbr0P7D3zUzBMAZB+ois3h/et0shEz0qApgHYGpY=
386-
github.com/tonistiigi/fsutil v0.0.0-20241003195857-3f140a1299b0 h1:H9++AiQUqjwrOMA/DOpWhxWp3JLyyT+MN4sRPbMmwoY=
387-
github.com/tonistiigi/fsutil v0.0.0-20241003195857-3f140a1299b0/go.mod h1:Dl/9oEjK7IqnjAm21Okx/XIxUCFJzvh+XdVHUlBwXTw=
386+
github.com/tonistiigi/fsutil v0.0.0-20241028165955-397af5306b5c h1:bQLsfX+uEPZUjyR2qmoJs5F8Z57bPVmF3IsUf22Xo9Y=
387+
github.com/tonistiigi/fsutil v0.0.0-20241028165955-397af5306b5c/go.mod h1:Dl/9oEjK7IqnjAm21Okx/XIxUCFJzvh+XdVHUlBwXTw=
388388
github.com/tonistiigi/go-actions-cache v0.0.0-20240327122527-58651d5e11d6 h1:XFG/Wmm5dFYoqUiVChLumRjRzJm0P9k/qDMhxLqdupU=
389389
github.com/tonistiigi/go-actions-cache v0.0.0-20240327122527-58651d5e11d6/go.mod h1:anhKd3mnC1shAbQj1Q4IJ+w6xqezxnyDYlx/yKa7IXM=
390390
github.com/tonistiigi/go-archvariant v1.0.0 h1:5LC1eDWiBNflnTF1prCiX09yfNHIxDC/aukdhCdTyb0=

solver/llbsolver/file/backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func mkdir(d string, action *pb.FileActionMkDir, user *copy.User, idmap *idtools
4646
}
4747

4848
if action.MakeParents {
49-
if err := copy.MkdirAll(p, os.FileMode(action.Mode)&0777, ch, timestampToTime(action.Timestamp)); err != nil {
49+
if _, err := copy.MkdirAll(p, os.FileMode(action.Mode)&0777, ch, timestampToTime(action.Timestamp)); err != nil {
5050
return err
5151
}
5252
} else {

solver/llbsolver/file/unpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func unpack(srcRoot string, src string, destRoot string, dest string, ch copy.Ch
2525
if err != nil {
2626
return false, err
2727
}
28-
if err := copy.MkdirAll(dest, 0755, ch, tm); err != nil {
28+
if _, err := copy.MkdirAll(dest, 0755, ch, tm); err != nil {
2929
return false, err
3030
}
3131

vendor/github.com/tonistiigi/fsutil/copy/copy.go

Lines changed: 27 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tonistiigi/fsutil/copy/mkdir.go

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ github.com/stretchr/testify/require
752752
# github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205
753753
## explicit; go 1.21
754754
github.com/tonistiigi/dchapes-mode
755-
# github.com/tonistiigi/fsutil v0.0.0-20241003195857-3f140a1299b0
755+
# github.com/tonistiigi/fsutil v0.0.0-20241028165955-397af5306b5c
756756
## explicit; go 1.21
757757
github.com/tonistiigi/fsutil
758758
github.com/tonistiigi/fsutil/copy

0 commit comments

Comments
 (0)