Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/go1.13: missing note about "go build -o" directory targets #33720

Closed
FiloSottile opened this issue Aug 19, 2019 · 1 comment

Comments

@FiloSottile
Copy link
Member

commented Aug 19, 2019

In b48bda9 (#14295) go build -o was made to accept directory targets, and to build multiple binaries in that case. The behavior was updated in 081bc62 (#31296).

This is still described in gotip help build.

The -o flag forces build to write the resulting executable or object to the named output file or directory, instead of the default behavior described in the last two paragraphs. If the named output is a directory that exists, then any resulting executables will be written to that directory.

This is missing from the release notes AFAICT.

@gopherbot

This comment has been minimized.

Copy link

commented Aug 20, 2019

Change https://golang.org/cl/190907 mentions this issue: doc/go1.13: mention '-o <directory>' support for 'go build'

@gopherbot gopherbot closed this in 7238523 Aug 20, 2019

@bcmills bcmills closed this Aug 26, 2019

t4n6a1ka-github added a commit to t4n6a1ka-github/go that referenced this issue Sep 5, 2019
doc/go1.13: mention '-o <directory>' support for 'go build'
Fixes golang#33720
Updates golang#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.