guilhem / bump

CLI to bump version tag in a git repository following semver
Apache License 2.0
25 stars 3 forks source link

Snap Install Permission Issues #7

Open TheQueenIsDead opened 2 years ago

TheQueenIsDead commented 2 years ago

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.

guilhem commented 2 years ago

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 commented 2 years ago

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

voronind commented 1 year ago

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"

MiguelAxcar commented 10 months ago

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
guilhem commented 10 months ago

I will try :) Thanks @MiguelAxcar