casperdcl / cli

GitHub’s official command line tool

Home Page:https://cli.github.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission denied on fresh install

ewjoachim opened this issue · comments

Describe the feature or problem you’d like to solve

I have been using gh installed through apt but had to stop because of an upstream issue. I switched to the snap:

$ sudo snap install gh   
gh 2.6.0-15-g1a10fd5a from Casper (casper-dcl) installed

$ gh repo view --web                    
failed to read configuration:  open /home/me/.config/gh/config.yml: permission denied

Proposed solution

It looks like the snap permissions aren't set correctly.

Additional context

Ubuntu 20.04

Are you still seeing this issue? I was unable to reproduce it myself but I'm not sure whether @casperdcl fixed it.

no, they ended up fixing their apt repo, so I switched back to apt