Snap package needs system-files plug for issue list command to work
Description
On Ubuntu 20.04, with glab 1.14.0-16-g222c0c51, the glab issue list command fails due to missing permissions.
It seems that glab is trying to access /etc/gitconfig. However, it cannot in a non --classic install (as recommended in the glab documentation), as the snap only has access to files in the user's home directory.
Expected Behavior vs Actual Behavior
- Expected:
glab issue listworks after successful authentication - Actual:
glab issue listfails with the following error:
warning: unable to access '/etc/gitconfig': Permission denied
Possible Fix
- Provide a system-files plug for the snap
-
Recommend to install with=> does not work eithersudo snap install glab --edge --classic - Remove the snap and install the
.debpackage instead
Steps to Reproduce
$ glab issue list
warning: unable to access '/etc/gitconfig': Permission denied
warning: unable to access '/etc/gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files
git: exit status 128
$ sudo snap connect glab:system-files
error: snap "glab" has no plug named "system-files"
Logs
See above
Your Environment
- Version used (Run
glab --version): 1.14.0-16-g222c0c51 - Operating System and version: Ubuntu 20.04
Edited by Kai Armstrong