]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow output in non-existent directory
authorSam Xie <xsambundy@gmail.com>
Thu, 17 Sep 2020 02:59:28 +0000 (02:59 +0000)
committerJay Conrod <jayconrod@google.com>
Thu, 17 Sep 2020 15:51:14 +0000 (15:51 +0000)
commit07d5eb075b6f270ae4443e9689821d2e403b72b5
treee069baec85a37a64d3d731a99d1c53c3cbd08c1c
parent0f7ac9b4f5f6bc20344feb8a2c32b8126df80baa
cmd/go: allow output in non-existent directory

When 'go build' is given an output path with -o, if the output path
ends with a path separator, always treat it as a directory.

Fixes #41313

Change-Id: I9a9c25448abfcd6297ad973f5ed2025b2568a4a7
GitHub-Last-Rev: 20a19bd63a2779a2c94b0efdf86146ffd551293c
GitHub-Pull-Request: golang/go#41314
Reviewed-on: https://go-review.googlesource.com/c/go/+/253821
Run-TryBot: Jay Conrod <jayconrod@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/script/build_output.txt