diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-05-09 15:28:23 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-05-09 23:29:41 +0000 |
commit | 6584fe8195a1a0afb65ffbea11a2a4fe760a2abd (patch) | |
tree | 579587b46a2b95c15bb03340e2e5ab6f8879408b | |
parent | 2315412535290d7513484e3ab0caf2bfddab8f74 (diff) | |
download | go-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>
-rw-r--r-- | src/cmd/dist/buildtool.go | 2 |
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{ |