]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/distpack: test for .DS_Store files in all directories
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 1 Aug 2023 17:43:08 +0000 (13:43 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 1 Aug 2023 22:29:19 +0000 (22:29 +0000)
macOS may write a .DS_Store file to any directory at any time in
the general case, unfortunately. Expand test rules to catch them
no matter where they may appear.

For #24904.

Change-Id: I98a2bb5d0ae2ab3a191ff87b33d6f8048ca39aa8
Reviewed-on: https://go-review.googlesource.com/c/go/+/514898
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>

src/cmd/distpack/test.go

index 4544d72d1f386f3a2d43d90a3695015c6fff303b..22b54b5fe123bba472ba7e9c6162486e0b6d5a6d 100644 (file)
@@ -26,7 +26,7 @@ var srcRules = []testRule{
        {name: "go/VERSION"},
        {name: "go/src/cmd/go/main.go"},
        {name: "go/src/bytes/bytes.go"},
-       {name: "go/.DS_Store", exclude: true},
+       {name: "**/.DS_Store", exclude: true},
        {name: "go/.git", exclude: true},
        {name: "go/.gitattributes", exclude: true},
        {name: "go/.github", exclude: true},
@@ -44,7 +44,7 @@ var zipRules = []testRule{
        {name: "go/src/cmd/go/main.go"},
        {name: "go/src/bytes/bytes.go"},
 
-       {name: "go/.DS_Store", exclude: true},
+       {name: "**/.DS_Store", exclude: true},
        {name: "go/.git", exclude: true},
        {name: "go/.gitattributes", exclude: true},
        {name: "go/.github", exclude: true},
@@ -73,7 +73,7 @@ var modRules = []testRule{
        {name: "golang.org/toolchain@*/src/cmd/go/main.go"},
        {name: "golang.org/toolchain@*/src/bytes/bytes.go"},
 
-       {name: "golang.org/toolchain@*/.DS_Store", exclude: true},
+       {name: "**/.DS_Store", exclude: true},
        {name: "golang.org/toolchain@*/.git", exclude: true},
        {name: "golang.org/toolchain@*/.gitattributes", exclude: true},
        {name: "golang.org/toolchain@*/.github", exclude: true},