Skip to content

Commit 393d91a

Browse files
committed
cmd/fix: remove all functionality
The buildtag fixer has been incorporated into the vet analyzer of the same name; all other fixers were already no-ops since CL 695855. Fixes #73605 Updates #71859 Change-Id: I90b6c730849a5ecbac3e6fb6fc0e062b5de74831 Reviewed-on: https://go-review.googlesource.com/c/go/+/706758 Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 6dceff8 commit 393d91a

15 files changed

+12
-2475
lines changed

src/cmd/fix/buildtag.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/cmd/fix/buildtag_test.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/cmd/fix/cftype.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/cmd/fix/context.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/cmd/fix/doc.go

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,12 @@ the necessary changes to your programs.
99
1010
Usage:
1111
12-
go tool fix [-r name,...] [path ...]
12+
go tool fix [ignored...]
1313
14-
Without an explicit path, fix reads standard input and writes the
15-
result to standard output.
16-
17-
If the named path is a file, fix rewrites the named files in place.
18-
If the named path is a directory, fix rewrites all .go files in that
19-
directory tree. When fix rewrites a file, it prints a line to standard
20-
error giving the name of the file and the rewrite applied.
21-
22-
If the -diff flag is set, no files are rewritten. Instead fix prints
23-
the differences a rewrite would introduce.
24-
25-
The -r flag restricts the set of rewrites considered to those in the
26-
named list. By default fix considers all known rewrites. Fix's
27-
rewrites are idempotent, so that it is safe to apply fix to updated
28-
or partially updated code even without using the -r flag.
29-
30-
Fix prints the full list of fixes it can apply in its help output;
31-
to see them, run go tool fix -help.
32-
33-
Fix does not make backup copies of the files that it edits.
34-
Instead, use a version control system's “diff” functionality to inspect
35-
the changes that fix makes before committing them.
14+
This tool is currently in transition. All its historical fixers were
15+
long obsolete and have been removed, so it is currently a no-op. In
16+
due course the tool will integrate with the Go analysis framework
17+
(golang.org/x/tools/go/analysis) and run a modern suite of fix
18+
algorithms; see https://go.dev/issue/71859.
3619
*/
3720
package main

src/cmd/fix/egltype.go

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)