-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: go work use panics when given a file #51749
Comments
This seems like a good candidate for someone's first contribution, by the way. Just make sure to look at how recent bugfixes in |
I'd be interested in working on this as a first contribution |
Change https://go.dev/cl/393615 mentions this issue: |
@gopherbot, please backport to Go 1.18. (This is a user-facing panic in |
Backport issue(s) opened: #51764 (for 1.18). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Check if paths passed as arguments are existing directories. Fixes golang#51841 golang#51749
Change https://go.dev/cl/394154 mentions this issue: |
Check if paths passed as arguments are existing directories. Fixes golang#51841 golang#51749
Check if paths passed as arguments are existing directories. Fixes golang#51841 golang#51749
Check if paths passed as arguments are existing directories. Fixes golang#51841 Fixes golang#51749
Check if paths passed as arguments are existing directories. Fixes #51841 Fixes #51749 Change-Id: Icfd148627e6f2c4651d6f923a37d413e68c67f6c GitHub-Last-Rev: 77fffa7 GitHub-Pull-Request: #51845 Reviewed-on: https://go-review.googlesource.com/c/go/+/394154 Trust: Bryan Mills <bcmills@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Trust: Emmanuel Odeke <emmanuel@orijtech.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/397994 mentions this issue: |
…a file The current implementation fails to identify that an argument to go work use is a file when expecting a directory, and panics when attempting to access it as a directory. This change checks arguments are directories and generates an error otherwise. Fixes #51764 Updates #51749 Change-Id: If8f69d233409e93fcf391a8774bace74c031c986 Reviewed-on: https://go-review.googlesource.com/c/go/+/393615 Reviewed-by: Bryan Mills <bcmills@google.com> Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Ian Lance Taylor <iant@golang.org> (cherry picked from commit a84ef50) Reviewed-on: https://go-review.googlesource.com/c/go/+/397994 Reviewed-by: Cherry Mui <cherryyz@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A graceful error around having been provided a file instead of a folder
What did you see instead?
The text was updated successfully, but these errors were encountered: