commit | d0a0606841937cd6dd1db7a95ebd9d6e7ad02d96 | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Tue Feb 01 16:59:41 2022 -0500 |
committer | Bryan Mills <bcmills@google.com> | Thu Feb 03 05:54:02 2022 +0000 |
tree | 3f1d83080ae023b9e0cf31fc0865c25b124eb3d1 | |
parent | 54b2a75406a4e347cff2825b698f910549d6bd04 [diff] |
cmd/go: fail 'go work' subcommands with a more helpful error if no go.work file exists Otherwise, the failure mode for these subcommands refers to an empty file path: go: open : no such file or directory Fixes #50964 Change-Id: I8776431a294d2b2246d7d147b6059054f31bc255 Reviewed-on: https://go-review.googlesource.com/c/go/+/382246 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://golang.org/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.