]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: remove stale files from gentab
authorAustin Clements <austin@google.com>
Tue, 6 Jun 2023 00:04:31 +0000 (20:04 -0400)
committerAustin Clements <austin@google.com>
Tue, 6 Jun 2023 15:33:01 +0000 (15:33 +0000)
commit46249e56e12ff7fadf118660860284bf20f053cc
treecfa7ec47e2d1af90888a9248dffd93335f98c5db
parent1d3daebc5fd5f51e16fa160a84f8fcfa28b4e2d7
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>
src/cmd/dist/build.go