From: Ian Lance Taylor Date: Thu, 9 May 2024 22:28:23 +0000 (-0700) Subject: cmd/dist: don't copy files ending in ~ to bootstrap directory X-Git-Tag: go1.23rc1~399 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6584fe8195a1a0afb65ffbea11a2a4fe760a2abd;p=gostls13.git cmd/dist: don't copy files ending in ~ to bootstrap directory 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 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor --- diff --git a/src/cmd/dist/buildtool.go b/src/cmd/dist/buildtool.go index 453b37285f..62f9693210 100644 --- a/src/cmd/dist/buildtool.go +++ b/src/cmd/dist/buildtool.go @@ -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{