-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
affected/package: io/fs #57772
Comments
The error seems clear. Do your environment have a /usr/local/go/bin? If not, change the example to point to a different, extant directory and run it in an environment that can access it. |
yes, it does : does the example work for you? |
Locally works for me, with 1.19.4 and 1.19.5 - are you sure you are working in the right environment? (I guess the "online example" which is probably build on Go Playground cannot work as access to local file system is forbidden) |
Yes, it is my issue. Locally for this example works for me too. My failing example is a bit more complex and other parts of code are affecting the traverse with a similar stat error. Apologies. |
What version of Go are you using (
go version
)?1.19.5
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?Online, but local is:
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
go env
OutputWhat did you do?
Go Example fails
Go to: https://pkg.go.dev/io/fs#example-WalkDir
Click run
Output:
2009/11/10 23:00:00 stat /usr/local/go/bin/.: no such file or directory
Example fails in the exact same way my code is failing, so not helpful. Bug?
What did you expect to see?
A working example
What did you see instead?
A failing example
The text was updated successfully, but these errors were encountered: