]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.13: mention '-o <directory>' support for 'go build'
authorBryan C. Mills <bcmills@google.com>
Tue, 20 Aug 2019 20:02:24 +0000 (16:02 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 20 Aug 2019 21:00:50 +0000 (21:00 +0000)
Fixes #33720
Updates #14295

Change-Id: I9cb6e02bcaccd7971057315163d8810157d465bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/190907
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
doc/go1.13.html

index 71d56612a523d108094f76e37cd129e7c248f7ea..30ea1a5c301d55d02395cfa7ec5db4885da6680b 100644 (file)
@@ -389,6 +389,13 @@ go env -w GOSUMDB=off
   from the compiled executable, to improve build reproducibility.
 </p>
 
+<p id="o-dir"><!-- CL 167679 -->
+  If the <code>-o</code> flag passed to <code>go</code> <code>build</code>
+  refers to an existing directory, <code>go</code> <code>build</code> will now
+  write executable files within that directory for <code>main</code> packages
+  matching its package arguments.
+</p>
+
 <p id="comma-separated-tags"><!-- CL 173438 -->
   The <code>go</code> <code>build</code> flag <code>-tags</code> now takes a
   comma-separated list of build tags, to allow for multiple tags in