-
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: better error for directory outside modules #56697
Comments
This occurred when I attempted to use |
Either I'm using workspaces incorrectly, or this is a good opportunity to suggest a toggle feature for the go work tool. Hopefully someone can show me that I'm wrong on the internet and how to fix that issue. Specifically, how to exclude directories from the workspace (cause I need to include |
Here is my eventual end goal (use case) for that repository.
Currently, I can't do this because I must use |
Change https://go.dev/cl/451295 mentions this issue: |
directory . outside modules listed in go.work or their selected dependencies
It's not clear what's going on with this error due to the period alongside the lack of slashes indicating a file location. For this very specific situation, "directory ." could be replaced with "current directory" and save Google millions of engineer hours.
proposal: replace
directory . outside modules listed in go.work or their selected dependencies
withcurrent directory is outside modules listed in go.work or their selected dependencies
ordirectory ./ outside modules listed in go.work or their selected dependencies
proposal2: add go work toggle feature
proposal3: add way to exclude folder from go workspace
The text was updated successfully, but these errors were encountered: