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

lefthook install not working: permission denied #161

Closed
deathcoder opened this issue Dec 24, 2020 · 6 comments
Closed

lefthook install not working: permission denied #161

deathcoder opened this issue Dec 24, 2020 · 6 comments
Labels
packaging/snap Issue with the version in Snap store

Comments

@deathcoder
Copy link

Hi,
I'm new to lefthook, we added it on our project and its working on our macos machine but i'm on ubuntu and i get this error:

$ lefthook install -v
open lefthook.yml: permission denied

i also tried lefthook install -a and lefthook install -f, even sudo lefthook install without success

permission for lefthook.yml files are as following:

$ ls -lia lefthook.yml 
39372773 -rw-rw-r-- 1 deathcode deathcode 285 dic 24 15:33 lefthook.yml

current version installed with snap:

$ lefthook version
0.6.4

haven't tried yet with latest version

@Dhruv-Garg79
Copy link

Any solution? facing same issue.

@Envek
Copy link
Member

Envek commented Apr 22, 2021

Did you install it also via snap?

@Dhruv-Garg79
Copy link

sorry for the late response. yes, I also used snap.

@Envek
Copy link
Member

Envek commented Apr 26, 2021

Hmm, most probably problem is in strict confinement defined at the time of release here: https://github.com/evilmartians/lefthook/blob/v0.6.4/.goreleaser.yml#L55

We need to either re-release it with classic confinement or declare bunch of interfaces (to be figured out which though). @Arkweid any thoughts?

@Envek Envek added the packaging/snap Issue with the version in Snap store label Apr 26, 2021
@Envek
Copy link
Member

Envek commented Apr 30, 2021

Created classic confinement request in Snapcraft: https://forum.snapcraft.io/t/request-for-classic-confinement-lefthook/24166

@Envek
Copy link
Member

Envek commented May 28, 2021

Classic confinement has been granted. Now you can install latest version of Lefthook with following command:

snap install --classic lefthook

@Envek Envek closed this as completed in d3d1386 May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging/snap Issue with the version in Snap store
Projects
None yet
Development

No branches or pull requests

3 participants