Skip to content

Commit 6584fe8

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 2315412 commit 6584fe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/dist/buildtool.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ var ignoreSuffixes = []string{
113113
// with PGO. And as it is not a text file the import path
114114
// rewrite will break it.
115115
".pgo",
116+
// Skip editor backup files.
117+
"~",
116118
}
117119

118120
var tryDirs = []string{

0 commit comments

Comments
 (0)