]> Cypherpunks repositories - gostls13.git/commit
cmd/go: set expected filename when building a local package with -o is pointing to...
authorJordi Martin <jordimartin@gmail.com>
Fri, 4 Oct 2019 11:56:26 +0000 (11:56 +0000)
committerJay Conrod <jayconrod@google.com>
Fri, 4 Oct 2019 17:30:40 +0000 (17:30 +0000)
commit3ce29b44bb8eaecbd5000202564ad4f52ad1cf69
treec6b4cc23dac62e659b56fee443f320b9148d1b88
parent43a4c61e125d184a8c9dac2d55cfa4ae31153fe8
cmd/go: set expected filename when building a local package with -o is pointing to a folder

In the local package build process, when -o is pointing to an existing folder, the object
the filename is generated from files listed on the command line like when the -o is
not pointing to a folder instead of using the `importPath` that is going to be `command-line-arguments`

Fixes #34535

Change-Id: I09a7609c17a2ccdd83da32f01247c0ef473dea1e
GitHub-Last-Rev: b3224226a3914aa2573e47a6daff9fd5a48ca225
GitHub-Pull-Request: golang/go#34562
Reviewed-on: https://go-review.googlesource.com/c/go/+/197544
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/load/pkg_test.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/script/build_multi_main.txt