diff options
| author | Yury Smolsky <yury@smolsky.by> | 2018-02-16 14:56:03 +0200 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-02-17 18:31:32 +0000 |
| commit | 9402a2bff75907668f8488ea9d32c56fdf101f04 (patch) | |
| tree | 15ba16b8dc190659a6eaea05adf9a663c5d56f0a /src | |
| parent | d58593d8aa318b53f7f8889488a04179a168b6cc (diff) | |
| download | go-9402a2bff75907668f8488ea9d32c56fdf101f04.tar.xz | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/alldocs.go | 2 | ||||
| -rw-r--r-- | src/cmd/go/internal/run/run.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 84211fd9cc..2788a9eef6 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -717,6 +717,8 @@ // cross-compiled programs when a simulator or other execution method is // available. // +// The exit status of Run is not the exit status of the compiled binary. +// // For more about build flags, see 'go help build'. // // See also: go build. diff --git a/src/cmd/go/internal/run/run.go b/src/cmd/go/internal/run/run.go index ce24748f4e..6ff2090095 100644 --- a/src/cmd/go/internal/run/run.go +++ b/src/cmd/go/internal/run/run.go @@ -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 available. +The exit status of Run is not the exit status of the compiled binary. + For more about build flags, see 'go help build'. See also: go build. |
