1
0
mirror of https://github.com/golang/go synced 2024-11-19 17:44:43 -07:00

cmd/go: document 'go run' exit codes

Updated docs that go run does not return the exit code of
the compiled binary.

Fixes #23716

Change-Id: Ib85459974c4c6d2760ddba957ef711628098661f
Reviewed-on: https://go-review.googlesource.com/94795
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Yury Smolsky 2018-02-16 14:56:03 +02:00 committed by Ian Lance Taylor
parent d58593d8aa
commit 9402a2bff7
2 changed files with 4 additions and 0 deletions

View File

@ -717,6 +717,8 @@
// cross-compiled programs when a simulator or other execution method is // cross-compiled programs when a simulator or other execution method is
// available. // available.
// //
// The exit status of Run is not the exit status of the compiled binary.
//
// For more about build flags, see 'go help build'. // For more about build flags, see 'go help build'.
// //
// See also: go build. // See also: go build.

View File

@ -34,6 +34,8 @@ for example 'go_nacl_386_exec a.out arguments...'. This allows execution of
cross-compiled programs when a simulator or other execution method is cross-compiled programs when a simulator or other execution method is
available. available.
The exit status of Run is not the exit status of the compiled binary.
For more about build flags, see 'go help build'. For more about build flags, see 'go help build'.
See also: go build. See also: go build.