-
Notifications
You must be signed in to change notification settings - Fork 18k
go: writing stat cache:, permission denied #26814
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
Comments
You have somehow executed the This does not seem to be a Go issue. Either run everything as root, or run everything as normal user. |
@agnivade Thanks for your help. When I run VSCode as a root, it does not show the errors, but it notify me that don't run it as a root. I am weird about how I can resolve the problem directly |
This is a system issue. You can I will close this as this is not a Go issue. Please direct further questions to forums in Questions wiki page; folks will be happy to help you out. |
sudo chown -R $(whoami):admin /Users/zhushuyan/go/pkg && sudo chmod -R g+rwx /Users/zhushuyan/go/pkg |
Still doesn't work for me :( OSX user |
@Emixam23 This issue was closed months ago. I recommend that you ask on a forum, providing details as to what happened; see https://golang.org/wiki/Questions. If you are sure you have encountered a bug, please feel free to file a new issue. |
|
your GOPATH is /Users/zongmeng/go why he open /User/zongmeng/go? |
do u use Ubuntu 18.04 on windows 10 ? if it still build fail ,please click security tab , and click Advaced(V) wish it helped all who met this err ,I had troubled by it for months ; |
It's just a solution for manucorporat.Many files have the same problem. |
I just solved this problem on my Windows machine. At first I had thought it was a file permissions problem. But it was a GOPATH environment variable problem. I had it set to 2 values: C:\Program Files\Go (which is where I installed Go) and C:.... which was where I wanted all my Go projects to go. So I removed the first entry. Just leaving GOPATH to point to the place on my hard drive where I wanted all my projects, and hey presto, problems gone, all tools installed correctly. This may have been due to a previous version of Go not being entirely removed. |
Thank you so much ! . Regards.- L.C |
Thanks this worked for me, just setting the GOPATH to the folder were y had all my projects |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11beta2 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
I have a simple project that uses
go mod
. when I open the project in VSCode, it show the follow error for me:I got into this first wrong dictionary

/User/zongmeng/go/src/mod/cache/download/github.com/manucorporat/sse/@v
and check its permission:ls -l
, it shows:)
Other problem is same
What did you expect to see?
What did you see instead?
As the image shows, the two files don't have enough permission. They were created by
go mod
automatucally. I am not sure that is normal or notThe text was updated successfully, but these errors were encountered: