mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
cmd/dist: remove stale files from gentab
There are several files in gentab that have a nil generator, which means they used to be generated, but aren't any more, so dist should delete them if it encounters them. However, cleaning only look for these file names in the small number of directories listed in cleanlist, and none of these files were originally generated into any of the directories in cleanlist. Specifically, enam.c was generated into $GOROOT/src/cmd/[568]l starting with CL 5620045 until CL 35740044 and the anames[5689].c files were generated into $GOROOT/src/liblink starting with CL 35740044 and CL 120690043 until CL 6110. None of these directories even exist any more, and if these files did somehow exist, dist wouldn't delete them anyway. Hence, we can safely remove these files from gentab. Change-Id: Ifed322d64a7a81a76537fcd9fc7020c7aca48050 Reviewed-on: https://go-review.googlesource.com/c/go/+/501135 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
1d3daebc5f
commit
46249e56e1
7
src/cmd/dist/build.go
vendored
7
src/cmd/dist/build.go
vendored
@ -657,13 +657,6 @@ var gentab = []struct {
|
||||
{"zosarch.go", mkzosarch},
|
||||
{"zversion.go", mkzversion},
|
||||
{"zzipdata.go", mktzdata},
|
||||
|
||||
// not generated anymore, but delete the file if we see it
|
||||
{"enam.c", nil},
|
||||
{"anames5.c", nil},
|
||||
{"anames6.c", nil},
|
||||
{"anames8.c", nil},
|
||||
{"anames9.c", nil},
|
||||
}
|
||||
|
||||
// installed maps from a dir name (as given to install) to a chan
|
||||
|
Loading…
x
Reference in New Issue
Block a user