Skip to content

Commit 3eddce3

Browse files
committed
Tarballer.Do: ignore WalkDir error (for now)
archive.go:1034:19: Error return value of `filepath.WalkDir` is not checked (errcheck) filepath.WalkDir(walkRoot, func(filePath string, f os.DirEntry, err error) error { ^ Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 527eedb commit 3eddce3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: archive.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ func (t *Tarballer) Do() {
10311031
)
10321032

10331033
walkRoot := getWalkRoot(t.srcPath, include)
1034-
filepath.WalkDir(walkRoot, func(filePath string, f os.DirEntry, err error) error {
1034+
// TODO(thaJeztah): should this error be handled?
1035+
_ = filepath.WalkDir(walkRoot, func(filePath string, f os.DirEntry, err error) error {
10351036
if err != nil {
10361037
log.G(context.TODO()).Errorf("Tar: Can't stat file %s to tar: %s", t.srcPath, err)
10371038
return nil

0 commit comments

Comments
 (0)