-
Notifications
You must be signed in to change notification settings - Fork 260
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
Snap version 2.11.0 fail to run #588
Comments
Are you sure that you ran onefetch inside of a git repository? see the Getting Started section in the wiki. |
Yes. I run both version in same repository. I'm not only one: |
Indeed, you're not the first one to have encountered this issue #335 Unfortunately, I can't reproduce on my machine. |
Did you have any hint how I could got more verbose output that may help you? Maybe this is somehow related to snap permissions? |
I think we may want to adjust this line Line 359 in 3de0a37
When repo.is_ok() is false , it's likely short-circuiting the boolean expression, resulting in Ok(false) being returned when the wanted behavior is likely that !repo?.is_bare() would return an Error (due to the ? ). This is likely leading to confusing errors that aren't due to the repo being bare.
|
I just compile onefetch from the source and it works without problem. When building snap using But when install from snap store it does not work. |
This is just a guess, but I'm thinking maybe the snap store version isn't properly linking with some libraries, which causes Edit: Likely related to #335 |
there are no such error messages. |
Sorry, I didn't mean that you're getting that specific error, just that it's likely that the error is caused by a failure to link to a library. But, due to boolean short-circuiting, that error is silently ignored. Here is an example that I hope clarifies why the error you're seeing isn't actually the root cause. Either way I would consider this a bug where onefetch is hiding the appropriate error message. |
I see. Maybe @o2sh could create a new release that will allow debugging this. |
I followed @spenserblack's suggestion and temporarily removed the first condition in the @Czaki, you can test this version via |
where
Based on fast google it may be connected with install git-lfs and by default, this file is absent in most installations. I found a similar issue profclems/glab#597 with a simple solution profclems/glab#599 |
I see your message yesterday evening, but when try to test it today it is missed. So I cannot check if it works. |
Yeah sorry, I thought I had a solution but I was wrong 😞 As a quick and easy fix, would you consider making your gitconfig global wide instead of system wide -> |
This will fix of course. For me, I could even use the compiled version. But this is not a proper solution for his problem. |
Following 125c610, a manual review was automatically created and is currently pending: https://dashboard.snapcraft.io/snaps/onefetch/revisions/1855/ |
The request has been approved. Onefetch's snap (edge channel) has been granted read access to:
|
Just installed the version from edge and it works :) Tested also non-edge and it still fails (so no other workaround happens and this solution is good). |
Since the v.2.12.0 release, this should also work on the stable channel. |
When trying to use onefetch from snap its fails with
Error: please run onefetch inside of a non-bare git repository
When using version from apt everything works
My system:
The text was updated successfully, but these errors were encountered: