]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify the -o testflag is only for copying the binary
authorSean Liao <sean@liao.dev>
Sun, 5 Oct 2025 18:21:59 +0000 (19:21 +0100)
committerSean Liao <sean@liao.dev>
Wed, 12 Nov 2025 16:01:00 +0000 (08:01 -0800)
Fixes #74769

Change-Id: Iebbaea8fb1a25e30a541a827815def9e269a8135
Reviewed-on: https://go-review.googlesource.com/c/go/+/709255
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Ian Alexander <jitsu@google.com>
Reviewed-by: Michael Matloob <matloob@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go

index 1029d1e8c2e63f3227cc03d6dbe20eb2ae6f34f4..fe9b86207361e6fede63465636b763094568778f 100644 (file)
 //         Also emits build output in JSON. See 'go help buildjson'.
 //
 //     -o file
-//         Compile the test binary to the named file.
+//         Save a copy of the test binary to the named file.
 //         The test still runs (unless -c or -i is specified).
 //         If file ends in a slash or names an existing directory,
 //         the test is written to pkg.test in that directory.
index 44ee98feaaf576274b1aa2a4a87a11f75369c590..b30b2abc0e9ef7a4e67e47c3e5da96c192089d0a 100644 (file)
@@ -162,7 +162,7 @@ In addition to the build flags, the flags handled by 'go test' itself are:
            Also emits build output in JSON. See 'go help buildjson'.
 
        -o file
-           Compile the test binary to the named file.
+           Save a copy of the test binary to the named file.
            The test still runs (unless -c or -i is specified).
            If file ends in a slash or names an existing directory,
            the test is written to pkg.test in that directory.