diff options
author | Agniva De Sarker <agnivade@yahoo.co.in> | 2018-11-15 23:35:27 +0530 |
---|---|---|
committer | Agniva De Sarker <agniva.quicksilver@gmail.com> | 2019-03-27 03:41:10 +0000 |
commit | 08ba9c02910790c5ec9083dc32a1e2683bc77dc3 (patch) | |
tree | 086f0fc1f664d25a16dfadef829db34b1a8b61fa /src/cmd/go/internal/work/build.go | |
parent | 724a86fcede55d0e80da4a779ef64a2eb5d235a8 (diff) | |
download | go-08ba9c02910790c5ec9083dc32a1e2683bc77dc3.tar.gz go-08ba9c02910790c5ec9083dc32a1e2683bc77dc3.zip |
cmd/go/internal/{run,work,generate}: document file path location requirement
Mention that .go files must be from a single directory
for them to be treated as a single package.
Fixes #21529
Change-Id: I79cb08b9f43888814b1249a7b50bc7bc70bc1c72
Reviewed-on: https://go-review.googlesource.com/c/go/+/149797
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/cmd/go/internal/work/build.go')
-rw-r--r-- | src/cmd/go/internal/work/build.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go index eac027e09e..96b3744444 100644 --- a/src/cmd/go/internal/work/build.go +++ b/src/cmd/go/internal/work/build.go @@ -27,8 +27,8 @@ var CmdBuild = &base.Command{ Build compiles the packages named by the import paths, along with their dependencies, but it does not install the results. -If the arguments to build are a list of .go files, build treats -them as a list of source files specifying a single package. +If the arguments to build are a list of .go files from a single directory, +build treats them as a list of source files specifying a single package. When compiling a single main package, build writes the resulting executable to an output file named after |