Closed rossmacarthur closed 1 year ago
Fixed in a632fc59ead474c07d21dd8980e7c97364350ebb
I'm not sure if I understand the solution correctly. My global config is on /etc/sheldon.toml
which made user shell lock up with the following message:
Blocking waiting for file lock on /etc
I suppose it's because my user doesn't have write rights to /etc.
@seqizz Interesting, the purpose of the file mutex (it uses flock(2)) is so that two instances of sheldon do not run at the same time. E.g. you open two terminals at the same time.
There are two constraints here
The fix was made because the directory didn't exist so I changed it to use a directory that definitely would exist. I don't think its critical that the file mutex be acquired, I think we can make sheldon handle the permission case more gracefully. I've opened an issue for this
Discussed in https://github.com/rossmacarthur/sheldon/discussions/155