bump icon indicating copy to clipboard operation
bump copied to clipboard

Snap Install Permission Issues

Open TheQueenIsDead opened this issue 2 years ago • 5 comments

When I install via Snap (v0.2) the program throws permission issues trying to bump a repository

Example:

$ git tag
v1.0.0

$ bump minor
ERRO[0000] git new                                       error="can't open git: open .../.git/packed-refs: permission denied"

$ ls -la .git/packed-refs
-rw-rw-r-- 1 user user 1725 Jul  7 16:16 .git/packed-refs

$ chmod 777 .git/packed-refs 

$ .git/packed-refs
-rwxrwxrwx 1 user user 1725 Jul  7 16:16 .git/packed-refs

$ bump minor
ERRO[0000] git new                                       error="can't open git: open .../.git/packed-refs: permission denied"

Using chmod -R on the entire git directory with 777 perms did not resolve the issue, and the user was correct across all files.

TheQueenIsDead avatar Jul 07 '22 21:07 TheQueenIsDead

Hi @TheQueenIsDead bump snap don't have an auto-connect on home (for the moment).

You have to connect it yourself after installation:

snap connect bump:home :home

Can you tell me if it's ok?

guilhem avatar Jul 10 '22 21:07 guilhem

Hi @TheQueenIsDead bump snap don't have an auto-connect on home (for the moment).

You have to connect it yourself after installation:

snap connect bump:home :home

Can you tell me if it's ok?

This don't work for now, plug wasn't correctly pushed

guilhem avatar Jul 11 '22 07:07 guilhem

Hi @TheQueenIsDead bump snap don't have an auto-connect on home (for the moment).

You have to connect it yourself after installation:

snap connect bump:home :home

Can you tell me if it's ok?

error: snap "bump" has no plug named "home"

voronind avatar Dec 23 '22 22:12 voronind

You may need to a home plug on snapcraft.yaml file. I would open a PR for it, but could not find the appropriate file. How the Snap package is being built? There's a separate snapcraft.yaml file or repository for it? Thank you @guilhem .

Potential content of the file:

plugs:
  home:
    interface: home

MiguelAxcar avatar Nov 29 '23 20:11 MiguelAxcar

I will try :) Thanks @MiguelAxcar

guilhem avatar Nov 29 '23 20:11 guilhem