aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-05-09 15:28:23 -0700
committerGopher Robot <gobot@golang.org>2024-05-09 23:29:41 +0000
commit6584fe8195a1a0afb65ffbea11a2a4fe760a2abd (patch)
tree579587b46a2b95c15bb03340e2e5ab6f8879408b /src/cmd
parent2315412535290d7513484e3ab0caf2bfddab8f74 (diff)
downloadgo-6584fe8195a1a0afb65ffbea11a2a4fe760a2abd.tar.gz
go-6584fe8195a1a0afb65ffbea11a2a4fe760a2abd.zip
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 <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>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/dist/buildtool.go2
1 files changed, 2 insertions, 0 deletions
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{