]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: don't copy files ending in ~ to bootstrap directory
authorIan Lance Taylor <iant@golang.org>
Thu, 9 May 2024 22:28:23 +0000 (15:28 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 9 May 2024 23:29:41 +0000 (23:29 +0000)
They are editor backup files. They are ignored by .gitignore,
so they can never be real files in the Go repo.

Change-Id: I58800e6e9f939e0bd21b086243b9260bcc8cd770
Reviewed-on: https://go-review.googlesource.com/c/go/+/584675
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

src/cmd/dist/buildtool.go

index 453b37285f20dc3531bc6b86d8fe9ffa30fd45e8..62f9693210230ad46a22cc277b1fcbc23e0ebc9e 100644 (file)
@@ -113,6 +113,8 @@ var ignoreSuffixes = []string{
        // with PGO. And as it is not a text file the import path
        // rewrite will break it.
        ".pgo",
+       // Skip editor backup files.
+       "~",
 }
 
 var tryDirs = []string{