Skip to content
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

Fails entirely if unauthorized to read folder in GOPATH #4

Closed
johanbrandhorst opened this issue Jan 18, 2018 · 3 comments
Closed

Fails entirely if unauthorized to read folder in GOPATH #4

johanbrandhorst opened this issue Jan 18, 2018 · 3 comments

Comments

@johanbrandhorst
Copy link

Hi, I ran into a problem with VSCode's use of gopkgs, that in the end boiled down to me having a single folder in my gopath in which my user did not have read access (docker mounts do strange things).

Using gopkgs resulted in an error:

$ gopkgs -format {{.Name}}
open /<$GOPATH>/src/<folder>: permission denied

This is fine as far as errors go, as I could easily delete the folder and fix it, but I'm wondering if this couldn't be a warning and gopkgs could continue with a best effort search and skip over this folder?

@uudashr
Copy link
Owner

uudashr commented Feb 28, 2018

Weird... somehow there are source code but we are not allowed to use it :-)
Thanks for the report

@uudashr
Copy link
Owner

uudashr commented Feb 28, 2018

Please update to the latest version
go get -u github.com/uudashr/gopkgs/cmd/gopkgs

If the problem recurring, you can re-open or create another issue.

@uudashr uudashr closed this as completed Feb 28, 2018
@lhhong
Copy link
Contributor

lhhong commented Mar 4, 2019

I am still facing this issue. Deleting the folder made it work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants